Synopsis

PDX_MSGT mda_CopyFromOList(long option, void *ent, OLM_LIST *list, MDA_COUNT *count, void *ptr)

Purpose

Copy an object list to a field.

Description

The contents of the specified object list will be copied to an entity field. The list will be copied in first to last order. The number of list elements copied will be stored in the count argument. The target of the copy must be a "pointer to fixed" field type in the entity. If the number of elements in the list is 0, no memory will be allocated, the count will be set to 0, a NULL pointer will be stored in ptr, and a value of MDA_NOERR will be returned.

Input

option

MDA_SET_BACKPTRS

Set back pointers if objects in list are MDA_PTR objects.

ent

The entity which owns the copied list

list

The object list of data to be copied

ptr

Address to store the allocated memory pointer at

Output

count

Number of elements copied from the list

ptr

The allocated memory pointer referencing the copied list

Return

MDA error code