Next: sll_delete, Previous: Singly Linked Lists, Up: Singly Linked Lists
Determine the number of nodes in a singly linked list.
#include <linklist/linklist.h>size_t sll_count(SLinkList ull);
SLinkList ull
- the list to count
This function returns the number of nodes in a list. It is an inexpensive routine to call.
It returns the number of nodes in the list, ‘0’ if the passed
pointer is NULL
.