Next: , Previous: Doubly Linked Lists, Up: Doubly Linked Lists


3.2.1 dll_count

Determine the number of nodes in a doubly linked list.

Synopsis

     #include <linklist/linklist.h>
     
     
     
size_t dll_count(DLinkList ull);

Parameters

DLinkList ull
the list to count

Description

This function returns the number of nodes in a list. It is an inexpensive routine to call.

Returns

It returns the number of nodes in the list, ‘0’ if the passed pointer is NULL.