AVL_DESTROY(3AVL) AVL Tree Library Functions AVL_DESTROY(3AVL)
NAME
avl_destroy - destroy an AVL tree
SYNOPSIS
AVL Tree Library (libavl, -lavl)
#include <sys/avl.h> void avl_destroy(
avl_tree_t *tree);
DESCRIPTION
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).
EXAMPLES
See the
EXAMPLES section in
libavl(3LIB).
INTERFACE STABILITY
CommittedMT-Level See
Locking in
libavl(3LIB).
SEE ALSO
avl_create(3AVL),
avl_destroy_nodes(3AVL),
libavl(3LIB)illumos May 7, 2015 illumos