person-record.h

Go to the documentation of this file.
00001 #ifndef person_record_included
00002 #define person_record_included
00003 
00042 typedef struct {
00043     char* name;                    
00044     int id;                        
00045     char* address;                 
00046     int age;                       
00047 } PersonRecordV1;
00048 
00067 typedef struct {
00068     char name[20];                 
00069     int id;                        
00070     char address[25];              
00071     int age;                       
00072 } PersonRecordV2;
00073 
00080 typedef struct {
00081     char* first;                   
00082     char middle_initial;           
00083     char* last;                    
00084 } Name;
00085 
00092 typedef struct {
00093     int number;                    
00094     char* street;                  
00095     char* city;                    
00096     char state[2];                 
00097     char* country;                 
00098     int zip;
00099 } Address;
00100 
00106 typedef struct {
00107     Name name;                     
00108     int id;                        
00109     Address address;               
00110     int age;
00111 } PersonRecordV3;
00112 
00116 void printPersonRecordV1(PersonRecordV1 prv1);
00117 
00121 void printPersonRecordV1p(PersonRecordV1* prv1p);
00122 
00126 void printPersonRecordV2(PersonRecordV2 prv2);
00127 
00131 void printPersonRecordV3(PersonRecordV3 prv3);
00132 
00133 #endif

Generated on Fri Apr 20 09:49:47 2007 by  doxygen 1.4.6