r6.0.0:lfds600_slist_get_next
Jump to navigation
Jump to search
Source Files
/liblfds600/src/lfds600_slist/lfds600_slist_get_and_set.c /liblfds600/inc/liblfds600.h
Prototype
struct lfds600_slist_element *lfds600_slist_get_next( struct lfds600_slist_element *se, struct lfds600_slist_element **next_se );
Parameters
struct lfds600_slist_element *se
- A pointer to an slist element, as obtained from lfds600_slist_new_head, lfds600_slist_new_next, lfds600_slist_get_head, lfds600_slist_get_next or lfds600_slist_get_head_and_then_next.
struct lfds600_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.
lfds600_slist_get_next( se, &se );