Next: , Previous: rbtree_node_get_data, Up: Public Routines


3.1.23 rbtree_node_put_data

Replace data pointer in a specified rbtree node.

Synopsis

     #include <rbtree/rbtree.h>
     
     
     
void rbtree_node_put_data( RBNode rbnode, void *data );

Parameters

RBNode rbnode
the node into which to copy the data
void *data
the data to copy

Description

This routine replaces the data pointer in the specified rbtree node with the passed pointer. It does not attempt to resort the tree, so the new data should not change the node's position in the tree (if it's not detached).