PersonRecordV2 Struct Reference
#include <person-record.h>
List of all members.
Detailed Description
PersonRecord Version 2 has the same fields as a Person Record Version 1, except the name and address fields are fixed character arrays instead of char*. These fields are 30 and 50 chars, respectively.
Consider the following code segment:
PersonRecordV2 prv2;
strcpy(prv2.name, "Jane Doe");
prv2.id = 123456789;
strcpy(prv2.address, "1 Main St.");
prv2.age = 25;
Here is a picture of the memory layout of variable prv1:
Member Data Documentation
|
address is a string of max 25 chars |
|
name is a string of max 20 chars |
The documentation for this struct was generated from the following file:
Generated on Fri Apr 20 09:49:47 2007 by
1.4.6