4.9.3.10 Replacing the Current Item [ToC] [Index]     [Skip Back]     [Prev] [Up] [Next]

76. <BST traverser replacement function 76> =
void *
bst_t_replace (struct bst_traverser *trav, void *new)
{ void *old; assert (trav != NULL && trav->bst_node != NULL && new != NULL); old = trav->bst_node->bst_data; trav->bst_node->bst_data = new; return old; }

This code is included in 64, 180, 270, 397, 504, and 548.