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


3.1.10 sll_detach_node

Remove a node from a singly linked list.

Synopsis

     #include <linklist/linklist.h>
     
     
     
void sll_detach_node( SLinkList ull, SLLNode unode );

Parameters

SLinkList ull
the list from which to detach the node
SLLNode unode
the node to detach

Description

This routine removes a node from a list without destroying it. The user is responsible for its subsequent care.

Returns

It returns a handle for the detached node.