| struct head {
|     char Type[2]; /* 2 bytes */
|     long Size; /* 4 bytes */
|     short Reserved1; /* 2 bytes */
|     short Reserved2; /* 2 bytes */
|     long Bits; /* 4 bytes */
| };

[snip]

| How can I force the compiler to not pad to word boundaries?

I remember a "packed" keyword in Pascal. Not sure if the same exists in C
too. It's been four years since I did any C programming.


Kiran Jonnalagadda
http://lunateks.com


To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to