gdl_first, gdl_last 3 | 2016-03-09 | genlist manual |
---|
gdl_first, gdl_last - return next or previous element of a list
itemtype *gdl_first(gdl_list_t *list)
itemtype *gdl_last(gdl_list_t *list)
gdl_list_t *gdl_parent(itemtype *elem)
gdl_first, gdl_last returns the first or last element of a list or NULL if the list is empty. gdl_parent returns the list an element is on, or NULL if the element is not on a list.All three calls are implemented as function-like macros evaluating to an expression.
Arguments:
list A list to be quieried. May not be NULL. elem The element whose list is to be queried. May not be NULL.
gdl_first, gdl_last 3 | 2016-03-09 | genlist manual |
---|