r6.0.1:lfds601_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

/liblfds601/src/lfds601_slist/lfds601_slist_get_and_set.c
/liblfds601/inc/liblfds601.h

Prototype

struct lfds601_slist_element *lfds601_slist_get_next( struct lfds601_slist_element *se, struct lfds601_slist_element **next_se );

Parameters

struct lfds601_slist_element *se

A pointer to an slist element, as obtained from lfds601_slist_new_head, lfds601_slist_new_next, lfds601_slist_get_head, lfds601_slist_get_next or lfds601_slist_get_head_and_then_next.

struct lfds601_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.

lfds601_slist_get_next( se, &se );

See Also