Synopsis
void *otm_GetArray(long option, OTM_TREE *tree, int *arraysize)
Purpose
Get an array of objects from an object tree.
Description
This function will return an array of objects from the specified tree. The array will contain all of the objects from the tree in left to right or right to left order. Since memory is allocated for the array, it should be freed when done.
Input
option
OTM_LTOR
left to right order
OTM_RTOL
right to left order
tree
Tree pointer
Output
arraysize
Number of objects in array
Return
Array pointer or NULL if error