| AVL_SWAP(3AVL) | AVL Tree Library Functions | AVL_SWAP(3AVL) | 
avl_swap — swap
    the entries in two AVL trees
AVL Tree Library (libavl, -lavl)
  
  #include <sys/avl.h>
void
  
  avl_swap(avl_tree_t *tree1,
    avl_tree_t *tree2);
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.
See the EXAMPLES section in libavl(3LIB).
See Locking in libavl(3LIB).
| May 7, 2015 | OmniOS |