r6.1.1:lfds611_slist_get_next
Jump to navigation
Jump to search
Source Files
/liblfds611/src/lfds611_slist/lfds611_slist_get_and_set.c /liblfds611/inc/liblfds611.h
Prototype
struct lfds611_slist_element *lfds611_slist_get_next( struct lfds611_slist_element *se, struct lfds611_slist_element **next_se );
Parameters
struct lfds611_slist_element *se
- A pointer to an slist element, as obtained from lfds611_slist_new_head, lfds611_slist_new_next, lfds611_slist_get_head, lfds611_slist_get_next or lfds611_slist_get_head_and_then_next.
struct lfds611_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.
lfds611_slist_get_next( se, &se );