tree_remove function <BLOC/tree.h>

The tree_remove function removes an object from a tree. If the object is not in the tree, the call will return normally.

Syntax

void
tree_remove(
	Tree *tree,
	void *obj
);

Parameters

tree

A pointer to a Tree object.

obj

A pointer to the object to be removed from the tree. If this object is in the tree, it will be removed, and the internal reference to it dropped.