Next: rbtree_search, Previous: rbtree_node_get_data, Up: Public Routines
Replace data pointer in a specified
rbtree
node.
#include <rbtree/rbtree.h>void rbtree_node_put_data( RBNode rbnode, void *data );
RBNode rbnode
- the node into which to copy the data
void *data
- the data to copy
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).