4.9.3.10 Replacing the Current Item |
75. <BST traverser replacement function 75> = 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; }