# Synopsis

OTM_TREE *otm_CreateTree(long option, size_t objectsize, OTM_COMPARE function, void *userdata)

# Purpose

Create an object tree.

# Description

This function will return an object tree pointer of a newly created tree. The specified function will be used to establish the tree based on the comparison of two objects. The function must return: a negative value if object one is less than object two, a positive value if object one is greater than object two, or zero if object one is equal to object two.

# Input

## option

Options (not used)

## objectsize

Number of bytes in object

## function

Comparison function pointer

## userdata

User data pointer

# Return

Tree pointer or NULL if error