home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lclint.zip / lclint-2_3h-os2-bin.zip / test / tests2.2 / struct.c < prev   
C/C++ Source or Header  |  1997-09-03  |  226b  |  21 lines

  1. extern double read_double (void);
  2.  
  3. typedef struct
  4. {
  5.    float a;
  6. } some_type;
  7.  
  8. typedef struct 
  9. {
  10.    double a;
  11. } another_type;
  12.  
  13. void main (void)
  14. {
  15.   another_type f;
  16.   double x;
  17.   
  18.   x = read_double ();
  19.   f.a = read_double ();
  20. }
  21.