function lfds710_stack_push

From liblfds.org
Revision as of 18:50, 30 May 2016 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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