> > typedef struct {
> > UInt16 waterbody; file://max value = 9999, 2 bytes
> > Char surveyDate[11]; // = 01/01/1994, 11
> > bytes includes null terminator
> > UInt16 area; file://max value = 999, 2 bytes
> > UInt16 method; file://max value = 999, 2 bytes
> > UInt16 station; file://max value = 999, 2 bytes
> > UInt16 effort; file://max value = 9999, 2 bytes
> > } InfoRecordStruct; // 21 bytes
>
> I believe
> #pragma packed
>
> forces packed structs. Otherwise there is no requirement in c/c++ for a
> stuct to be packed in the smallest number of bytes.
This won't help anyway in this case, because the UInt16 following the
char[11] have to begin on an even address for the m68k to access it.
Whatever the packing option you specify, the size of this struct will be at
least 22 bytes.
- Pascal
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/