Topic : C-Language Documentation Author : John Kormylo Version : C.HYP 1.0 Subject : Documentation/C-Language Nodes : 233 Index Size : 6362 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : en @default : @help : Help @options : +g -i -s +x +z -t4 @width : 75 View Ref-File[ typedef ] Defines a new data type, <name>. Syntax: typedef <type> <name>; typedef <definition> <name>; where <name> is the new type name, <type> is an existing data type (including structures, unions, and enums), and <definition> is a union, struct or enum definition. <name> can now be used for variable and function definitions and for casting. Examples: typedef unsigned short WORD; /* creates 'WORD' type */ typedef union obspecptr OBS; /* obspecptr from AES.H */ typedef struct { int error; char *message; } ERR_MSG; /* creates 'ERR_MSG' type */ See also Names, Data Types, Structures and Unions.