AVL_NUMNODES(3AVL) AVL Tree Library Functions AVL_NUMNODES(3AVL)

NAME


avl_numnodes - return the number of nodes in an AVL tree

SYNOPSIS


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

ulong_t
avl_numnodes(avl_tree_t *tree);

DESCRIPTION


The avl_numnodes() function returns the number of nodes in the AVL tree
rooted at tree.

RETURN VALUES


The number of nodes in the tree is returned.

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