AVL_IS_EMPTY(3AVL) AVL Tree Library Functions AVL_IS_EMPTY(3AVL)

NAME


avl_is_empty - determine if an AVL tree is empty

SYNOPSIS


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

boolean_t
avl_is_empty(avl_tree_t *tree);

DESCRIPTION


The avl_is_empty() function is used to determine whether or not the AVL
tree, tree, is empty. If tree has zero nodes in it, then B_TRUE is
returned, otherwise B_FALSE is returned.

RETURN VALUES


The avl_is_empty() function returns B_TRUE when there are no nodes in the
tree and B_FALSE otherwise.

EXAMPLES


See the EXAMPLES section in libavl(3LIB).

INTERFACE STABILITY


Committed

MT-Level
See Locking in libavl(3LIB).

SEE ALSO


libavl(3LIB)

illumos May 7, 2015 illumos