AVL_DESTROY(3AVL) AVL Tree Library Functions AVL_DESTROY(3AVL)

avl_destroydestroy an AVL tree

AVL Tree Library (libavl, -lavl)
#include <sys/avl.h>

void
avl_destroy(avl_tree_t *tree);

The () 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 (), 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).

avl_create(3AVL), avl_destroy_nodes(3AVL), libavl(3LIB)

May 7, 2015 OmniOS