function lfds710_stack_push

From liblfds.org
Jump to navigation Jump to search

Source Files

└───liblfds710
    ├───inc
    │   └───liblfds710
    │           lfds710_stack.h
    └───src
        └───lfds710_stack
                lfds710_stack_push.c

Opaque Structures

struct lfds710_stack_element;
struct lfds710_stack_state;

Prototype

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

Parameters

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.

Notes

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