What exactly is the problem you have? Accessing the data in the MessageType
struct? How is that a problem? Because sizeof() doesn't give you the size you
expect? What structure pointers are you talking about?
Max
--- Phong Nguyen <[EMAIL PROTECTED]> wrote:
> Thanks for the answers so far but if there is no
> solution for this issue, it would really be a SERIOUS
> problem for me and also for everyone out there when
> using the built-in function sizeof(..) !!!!!!! What
> can I do if I want to define several structure types
> defined a structure of a message and try to decode it
> using the structure pointers as follows:
>
> typedef struct
> {
> char preamble[2];
> char command;
> }
> HeaderType;
>
> typedef struct
> {
> char checksum[2];
> char terminator;
> }
> TrailerType;
>
> typedef struct
> {
> HeaderType header;
> char data[10];
> TrailerType trailer;
> }
> MessageType;
>
> Any solution? Thanks.
>
> --- Joe <[EMAIL PROTECTED]> wrote:
??? words cut off...
=====
http://www.weirdwww.com/
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/