A.6. User-Defined Data Types

C also allows you to create user-defined data types using structures and typedef. (For information about structures in C, see [6].) An example of a structured list definition is shown below.


Important:   typedef can only be used for compiled UDFs.


A.6.1. Example

 typedef struct list{int a;
      real b;
      int c;} mylist; /* mylist is type structure list
 mylist x,y,z;       x,y,z are type structure list */