AVL_DESTROY(3AVL) | AVL Tree Library Functions | AVL_DESTROY(3AVL) |
avl_destroy
—
destroy an AVL tree
AVL Tree Library (libavl, -lavl)
#include <sys/avl.h>
void
avl_destroy
(avl_tree_t
*tree);
The
avl_destroy
()
function is used to destroy the AVL tree that is rooted at
tree. At the time that
avl_destroy
() is called, tree
must be empty. It is a programmer error to call
avl_destroy
() otherwise. To efficiently remove all
entries in the tree, see
avl_destroy_nodes(3AVL).
After a call to
avl_destroy
(),
tree should not be used with any other library
functions until a subsequent call to
avl_create(3AVL).
See the EXAMPLES section in libavl(3LIB).
See Locking in libavl(3LIB).
May 7, 2015 | OmniOS |