tree_find function <BLOC/tree.h>

The tree_find function finds an object in a tree. If the object is not in the tree, the call will return normally.

Syntax

void *
tree_find(
	Tree *tree,
	void *key
);

Parameters

tree

A pointer to a Tree object.

key

A pointer to an object/structure with the same key as the object to be found in the tree.

Return value

A reference pointer to the object in the tree, or NULL no matching object was found.