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

avl_numnodesreturn the number of nodes in an AVL tree

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

ulong_t
avl_numnodes(avl_tree_t *tree);

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

The number of nodes in the tree is returned.

See the EXAMPLES section in libavl(3LIB).

See Locking in libavl(3LIB).

libavl(3LIB)

May 7, 2015 OmniOS