Home Segments Index Top Previous Next

442: Mainline

You can use typedef to create synonyms for structures as well as for the other data types. For example, if you have a structure named trade, you can make a synonym, Trade_description, as follows:

typedef struct trade Trade_description; 

Note that when you use typedef synonyms for structures, the synonym name is all you need; you do not include the struct symbol:

Trade_description *trade_pointers[100];