Next: dll_delete, Previous: Doubly Linked Lists, Up: Doubly Linked Lists
Determine the number of nodes in a doubly linked list.
#include <linklist/linklist.h>size_t dll_count(DLinkList ull);
DLinkList 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
.