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