AVL_SWAP(3AVL) AVL Tree Library Functions AVL_SWAP(3AVL)
NAME
avl_swap - swap the entries in two AVL trees
SYNOPSIS
AVL Tree Library (libavl, -lavl)
#include <sys/avl.h> void avl_swap(
avl_tree_t *tree1,
avl_tree_t *tree2);
DESCRIPTION
The
avl_swap() function swaps the nodes in the AVL tree
tree1 with
those in
tree2. The two trees must have hold identical kinds of data,
the arguments passed to
avl_create(3AVL) must be identical. The
behavior when they are not is undefined.
EXAMPLES
See the
EXAMPLES section in
libavl(3LIB).
INTERFACE STABILITY
CommittedMT-Level See
Locking in
libavl(3LIB).
SEE ALSO
libavl(3LIB)illumos May 7, 2015 illumos