| 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
- [ILUG-BOM] Help with C variable alignment Philip S Tellis
- Re: [ILUG-BOM] Help with C variable alignment Binand Raj S.
- Re: [ILUG-BOM] Help with C variable alignment Philip S Tellis
- Re: [ILUG-BOM] Help with C variable alignm... Binand Raj S.
- Re: [ILUG-BOM] Help with C variable alignment Aditya Deshpande
- Re: [ILUG-BOM] Help with C variable alignment Philip S Tellis
- Re: [ILUG-BOM] Help with C variable alignment Kiran Jonnalagadda
- Re: [ILUG-BOM] Help with C variable alignment Sandesh Rao
- Re: [ILUG-BOM] Help with C variable alignm... Philip S Tellis
- Re: [ILUG-BOM] Help with C variable al... Kiran Jonnalagadda
- Re: [ILUG-BOM] Help with C variab... Philip S Tellis
- Re: [ILUG-BOM] Help with C variab... Binand Raj S.
