pe_factory_linear_unit_codelist

Obsolete. Use pe_factory_lin_unit_codelist instead.

Creates a list of predefined linear unit codes.

Usage syntax

int *pe_factory_linear_unit_codelist (int *num_codes);

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

Creates a list of the predefined linear unit codes. The list will not include any user-defined linear units. You can use pe_predefined_linear_unit to return a table of linear units that includes user-defined linear units.

Returns

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

Examples

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