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


3.1.7 sll_destroy_dnode

Deallocate the memory associated with a detached node.

Synopsis

     #include <linklist/linklist.h>
     
     
     
void sll_destroy_dnode(SLLNode unode);

Parameters

SLLNode unode
the node to destroy

Description

This routine deallocates the memory associated with a detached node. The user must have already destroyed the data associated with the node. The node handle must have been returned by sll_detach_node.