man rlist_first (Fonctions bibliothèques) - get the head or tail entry in the list
NAME
rlist_first, rlist_last - get the head or tail entry in the list
SYNOPSIS
#include <roy.h>
void * rlist_first (RList * list); void * rlist_last (RList * list);
DESCRIPTION
This call gets the first or last (head or tail) of the list respectively.
RETURN VALUE
Returns the first or last entry in the list, or NULL if there are no items in the list. has nth or fewer entries.
ERRORS
A call to rlist_first(3) or rlist_last(3) will never fail. If list is uninitialized, it will likely cause invalid memory access.
MACROS
rlist_first(3) and rlist_last(3) are implemented as macros.
SEE ALSO
rlist(3), rlist_append(3), rlist_compare(3), rlist_free(3), rlist_last(3), rlist_new(3), rlist_next(3), rlist_nth(3), rlist_prepend(3), rlist_prev(3), rlist_remove(3), roy(3)