Counting the Number of Nodes in a List
To count the number of nodes in a list, use the
GetNodeCount()
function:
uint32 GetNodeCount( const List *l );
The
l
argument is a pointer to the list of which you want count the nodes. The function returns the number of nodes currently in the list.