pe_predefined_angular_unit |
Obsolete. Use pe_predefined_ang_unit instead.
Creates a table of predefined angular units
PE_TABLE pe_predefined_angular_unit (int *n);
n | The number of rows in the table is returned in this parameter |
The table is an array of rows with the following structure:
typedef struct pe_entry_t
{
int code;
char name[PE_NAME_MAX];
} *PE_TABLE;
If PEOBJEDITHOME is set, the table will include user-defined angular unit objects. Free the table with pe_table_del.
On success, the table; on failure, a null pointer
PE_TABLE ang_units;
int n, i;
ang_units = pe_predefined_angular_unit(&n);
for ( i=0; i<n; i++ )
{
printf("%d %s\n", ang_units[i].code, ang_units[i].name);
}