gdl_first, gdl_last 3 2016-03-09 genlist manual

NAME

gdl_first, gdl_last - return next or previous element of a list

SYNPOSIS

itemtype *gdl_first(gdl_list_t *list)

itemtype *gdl_last(gdl_list_t *list)

gdl_list_t *gdl_parent(itemtype *elem)

DESCRIPTION

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.

SEE ALSO

gdl_first, gdl_last 3 2016-03-09 genlist manual