tree_count function <BLOC/tree.h>

The tree_count function counts the number of items in a tree.

Syntax

unsigned int
tree_count(
	Tree *tree
);

Parameters

tree

A pointer to a Tree object.

Return value

The number of nodes in the tree.