r6.1.0:lfds610_slist_get_next

From liblfds.org
Revision as of 14:07, 4 January 2015 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source Files

/liblfds610/src/lfds610_slist/lfds610_slist_get_and_set.c
/liblfds610/inc/liblfds610.h

Prototype

struct lfds610_slist_element *lfds610_slist_get_next( struct lfds610_slist_element *se, struct lfds610_slist_element **next_se );

Parameters

struct lfds610_slist_element *se

A pointer to an slist element, as obtained from lfds610_slist_new_head, lfds610_slist_new_next, lfds610_slist_get_head, lfds610_slist_get_next or lfds610_slist_get_head_and_then_next.

struct lfds610_slist_element **next_se

A pointer to a pointer into which a pointer to the next slist element will be placed. Set to NULL if there is no next element.

Return Value

Returns a pointer to the next element. Returns NULL if there is no next element.

Notes

It is acceptable (and expected to often occur) to use the same variable for both arguments, e.g.

lfds610_slist_get_next( se, &se );

See Also