Synopsis

void *otm_GetObject(long option, OTM_TREE *tree, void *object)

Purpose

Get an object from an object tree.

Description

This function will return a pointer to the specified object in the specified tree. The object pointer is the actual location of the object in the tree and not an allocated copy. If the option OTM_FIND is not specified, an error will be generated if the object is not found.

Input

option

OTM_FIND

Do not generate error if object not found

tree

Tree pointer

object

Pointer to local object

Return

Object pointer in tree or NULL if error