typedef struct { ListNode* list; ListNode* current; void (*freeItem)(void*); int numItems; } List;
Type for a linked list. Before use, list_new(*List) must be called to initialise the structure.
Name Description list Pointer to first ListNode in the list current pointer to current node in traversal freeItem Pointer to function (void freeItem(void*)) used to free a node, otherwise NULL. numItems number of items in the list.
typedef struct ListNodeStruc ListNode;
(Last Updated 4/21/2003)