Next: dll_destroy, Previous: dll_delete, Up: Doubly Linked Lists
Delete a doubly list.
#include <linklist/linklist.h>void dll_udelete( DLinkList ull, void (*ufree)(void *,void *), void *udata );
DLinkList ull
- the linked list to be deleted
void (*ufree)(void *,void *)
- a function called at each link to delete user data. it may be
DLL_NULL_DELETE
void *udata
- a pointer to data to be passed to the action routine
dll_udelete
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. This routine differs from
dll_delete
in that it can pass along a pointer provided by
the calling routine to the action routine, allowing arbitrary data
to be available to the action routine.