PTMAP_alloc_ptm_data

This subroutine allocates memory for PTM_DATA structure and sets the length, type, and element fields.

Syntax

PTM_DATA *PTMAP_alloc_ptm_data (type, len, elem)

PTM_DATA_TYPE   type;

PTM_DATA_LENGTH len;

PTM_ELEMENTS elem;

Input Arguments

Type

Configured point data type (such as, BOOL, SINT, INT).

Len

Length of point type.

Elem

Number of elements in the point.

Output Arguments

None.

Return Value

Pointer to the PTM_DATA structure

Note: A null will be returned if virtual memory for the process is exhausted.

More information

Point Management API subroutines.