Next: , Previous: dll_insert_head, Up: Doubly Linked Lists


3.2.15 dll_insert_head_node

Insert a detached node at the head of a doubly linked list.

Synopsis

     #include <linklist/linklist.h>
     
     
     
int dll_insert_head_node( DLinkList ull, DLLNode unode );

Parameters

DLinkList ull
a handle to the list into which to insert the node
DLLNode unode
the node to insert

Description

This routine inserts a node at the head of a list. The node handle must have been obtained from dll_detach_node.

Returns

It returns non-zero if the node is NULL, zero otherwise.