gdl_next, gdl_prev 3 | 2016-02-26 | genlist manual |
---|
gdl_next, gdl_prev - return next or previous element of a list
itemtype *gdl_next(gdl_list_t *list, itemtype *elem)
itemtype *gdl_prev(gdl_list_t *list, itemtype *elem)
gdl_next returns the next element after elem, or NULL if elem is NULL or is the last element of list. gdl_prev returns the previous element after elem, or NULL if elem is NULL or is the first element of list.Both calls are implemented as function-like macros evaluating to an expression.
Arguments:
list A list of which elem is a member. May not be NULL. elem The element whose previos or next sibling is returned; may be NULL.
Returns a pointer to the next (or previous) element or NULL if it does not exist.
gdl_next, gdl_prev 3 | 2016-02-26 | genlist manual |
---|