Next: dll_insert_tail, Previous: dll_insert_head_node, Up: Doubly Linked Lists
Insert a detached node into a list.
#include <linklist/linklist.h>int dll_insert_node( DLinkList ull, DLLNode unode );
DLinkList ull
- a handle to the list into which to insert the node
DLLNode unode
- the node to insert
This routine inserts a detached node into a list in the collating
sequence determined by the comparison function with which the list
was initialized by dll_new
. It assumes that the list's
insert/delete comparison function can be applied to the data in the
passed node. The node handle must have been obtained from
dll_detach_node
.
It returns non-zero if the node is NULL
, zero otherwise.