pe_factory_angunit_codelist

Creates a list of predefined angular unit codes

Usage syntax

int *pe_factory_angunit_codelist (int *num_codes);

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

Pe_factory_angunit_codelist creates a list of the predefined angular unit codes. The list will not include any user-defined angular units. You can use pe_predefined_angular_unit to return a table of angular units that includes user-defined angular units.

Returns

On success, returns an array of angular unit codes; on failure, returns a null pointer

Examples

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