Finding out If a List Is Empty
To find out if a list is empty, use
IsListEmpty()
:
bool IsListEmpty( const List *l )
The
l
argument is a pointer to the list to check. The macro returns TRUE if the list is empty or FALSE if it isn't.