File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / struct
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



struct                      C Keyword                      struct




Data type


struct is a C keyword that introduces a structure.  The following
is an example  of how struct can be used  in the description of a
name and address file:


        struct address {
                char firstname[10];
                char lastname[15];
                char street[25];
                char city[10];
                char state[2];
                char zip[5];
                int  salescode;
        };


_T_h_e  _C _P_r_o_g_r_a_m_m_i_n_g  _L_a_n_g_u_a_g_e, ed. 2  prohibits the  assignment of
structures,  the  passing of  structures  to  functions, and  the
returning of  structures by functions.   COHERENT, however, lifts
these restrictions.   It allows one  structure to be  assigned to
another, provided  the two structures  are of the  same type.  It
also allows structures to be passed by and returned by functions.
These features are  supported by most compilers, but users should
be aware  that their  use can cause  problems in porting  code to
some compilers.

***** See Also *****

array, C keywords, field, structure
























COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.