pe_factory_datum_codelist

Creates a list of predefined datum codes

Usage syntax

int *pe_factory_datum_codelist (int *num_codes);

Parameters
num_codes A pointer to the integer, which upon return will contain the number of predefined datum object codes in the array
Description

Pe_factory_datum_codelist creates a list of the predefined datum codes. The list will not include any user-defined datums. You can use pe_predefined_datum to return a table of datums that includes user-defined datums.

Returns

On success, an array of datum codes. On failure, a null pointer.

Examples

int *list; int number, i; list = pe_factory_datum_codelist(&number); printf("Total number of predefined datums: %6d\n",number); for (i=0; i<number; i++) { printf("%6d\n",list[i]); } pe_factory_codelist_del(list);