pe_factory_unit_codelist |
Creates a list of predefined unit codes
int *pe_factory_unit_codelist (int *num_codes);
num_codes | A pointer to the integer, which upon return will contain the number of predefined unit object codes in the array |
Pe_factory_unit_codelist creates a list of the predefined unit codes. The list includes both angular and linear units. The list will not include any user-defined units. You can use pe_predefined_unit to return a table of units that includes user-defined units.
On success, returns an array of unit codes; on failure, returns a null pointer.
int *list; int number, i;
list = pe_factory_linear_unit_codelist(&number);
printf("Total number of predefined units: %6d\n",number);
for (i=0; i<number; i++)
{ printf("%6d\n",list[i]);
}
pe_factory_codelist_del(list);