Next: , Previous: rbtree_destroy, Up: Public Routines


3.1.7 rbtree_destroy_dnode

Deallocate the memory associated with a detached node.

Synopsis

     #include <rbtree/rbtree.h>
     
     
     
void rbtree_destroy_dnode(RBNode rbnode);

Parameters

RBNode rbnode
the handle of the detached node to destroy

Description

This routine deallocates the memory associated with a detached red-black tree node. The user must have already destroyed the data associated with the node. The node handle must have been returned by rbtree_detach_node.