Previous: deleteNode, Up: Private Routines


3.2.21 newNode

Allocate a new node and copy data into it.

Synopsis

     #include <rbtree/rbtree.h>
     
     
     
static Node *newNode( Tree *tree, void *data );

Parameters

Tree *tree
the tree that will contain the node
void *data
the data that the new node will contain

Description

Allocate a new node and copy data into it.