function lfds711_stack_push

Jump to navigation Jump to search

Source Files

    │   └───liblfds711
    │           lfds711_stack.h

Opaque Structures

struct lfds711_stack_element;
struct lfds711_stack_state;


void lfds711_stack_push( struct lfds711_stack_state *ss,
                         struct lfds711_stack_element *se );


struct lfds711_stack_state *ss

A pointer to an initialized struct lfds711_stack_state.

struct lfds711_stack_element *se

A pointer to a user-allocated struct lfds711_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 LFDS711_STACK_SET_KEY_IN_ELEMENT and LFDS711_STACK_SET_VALUE_IN_ELEMENT respectively, and can only be set when a stack element is outside of a stack.

See Also