Next: sll_insert_node, Previous: sll_insert_head, Up: Singly Linked Lists
Insert a detached node at the head of a singly linked list.
#include <linklist/linklist.h>int sll_insert_head_node( SLinkList ull, SLLNode unode );
SLinkList ull
- a handle to the list into which to insert the node
SLLNode unode
- the node to insert
This routine inserts a node at the head of a list. The node handle
must have been obtained from sll_detach_node
.
It returns non-zero if the node is NULL
, zero otherwise.