function lfds711_stack_push

From liblfds.org
Revision as of 18:12, 16 February 2017 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source Files

└───liblfds711
    ├───inc
    │   └───liblfds711
    │           lfds711_stack.h
    └───src
        └───lfds711_stack
                lfds711_stack_push.c

Opaque Structures

struct lfds711_stack_element;
struct lfds711_stack_state;

Prototype

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

Parameters

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.

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 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