www.delorie.com/gnu/docs/avl/libavl_61.html   search  
 
Buy GNU books!


GNU libavl 2.0.1

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.9.3.10 Replacing the Current Item

 
void *
bst_t_replace (struct bst_traverser *trav, void *new)
{ void *old; assert (trav != NULL && trav-&#62;bst_node != NULL && new != NULL); old = trav-&#62;bst_node-&#62;bst_data; trav-&#62;bst_node-&#62;bst_data = new; return old; }
This code is included in @refalso{63


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003