Next: , Previous: sll_destroy_node, Up: Singly Linked Lists


3.1.9 sll_detach_head_node

Detach the head node of a list.

Synopsis

     #include <linklist/linklist.h>
     
     
     
SLLNode sll_detach_head_node(SLinkList ull);

Parameters

SLinkList ull
the list in question

Description

This routine detaches the head node of a list from the list and returns a handle to the detached node.

Returns

It returns a handle to the node upon success, NULL on failure.