Next: dll_udelete, Previous: dll_count, Up: Doubly Linked Lists
Delete a doubly list.
#include <linklist/linklist.h>void dll_delete( DLinkList ull, void (*ufree)(void *) );
DLinkList ull
- the linked list to be deleted
void (*ufree)(void *)
- a function called at each link to delete user data. it may be
DLL_NULL_DELETE
dll_delete
traverses a linked list, calling a user-supplied function
at each node in the list, then deleting the node. Finally it
deletes the list header.