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[ struct ] Defines a new data type, 'struct <name>'. Syntax: struct <name> { <type> <member> [: <number bits> ]; <type> <member> [: <number bits> ]; ... }; where <name> is the new structure name, <type> is a data type, <member> is member name, and <number bits> defines a bit field. One can now define structure variables using [<qualifier>] [<class>] struct <name> <variable> [={ <constants> }] [, ...] ; where <qualifier> is a type qualifier, <class> is a storage class, <variable> is a new structure variable name, and <constants> is a list of constants separated by commas, where the first constant initializes the first member, etc. One can combine a structure definition and variable definition into one statement (in which case <name> is optional). One can similarly combine a structure definition and a typedef statement. See also Names, Structures and Variables.