# Synopsis

PDX_MSGT mda_CopyToOTree(long option, OTM_TREE *tree, int count, void *ptr)

# Purpose

Copy a field to an object tree.

# Description

The contents of the specified field will be copied to an object tree. The number of elements to be copied is specified in the count argument. The source of the copy must be a "pointer to fixed" field type. The pointer passed must be the location of the data, not the location of the pointer to the data. If the count argument is specified as 0, no data will be added to the tree and the function will return MDA_NOERR.

# Input

## option

Options (not used)

## tree

The object tree to copy the data to

## count

Number of elements to copy from the field

## ptr

Address of the field data to be copied

# Return

MDA error code