function lfds710_stack_push

Jump to navigation Jump to search

Source Files

    │   └───liblfds710
    │           lfds710_stack.h

Opaque Structures

struct lfds710_stack_element;
struct lfds710_stack_state;


void lfds710_stack_push( struct lfds710_stack_state *ss,
                         struct lfds710_stack_element *se );


struct lfds710_stack_state *ss

A pointer to an initialized struct lfds710_stack_state.

struct lfds710_stack_element *se

A pointer to a user-allocated struct lfds710_stack_element. There are no alignment requirements for this structure.


This function pushes a stack element, with its key and value, onto the stack. The key and value are both optional, are set by the macros LFDS710_STACK_SET_KEY_IN_ELEMENT and LFDS710_STACK_SET_VALUE_IN_ELEMENT respectively, and can only be set when a stack element is outside of a stack.

See Also