Hello everybody, I'm looking how it's possible to make a structure to be 32bit aligned. For example, I need that the 32bit fields in the next structure are 4byte-aligned (so that their address mod 4 == 0 ):
What can I do to be shure that pStruct%4 == 0?Code:typedef struct{ UInt16 a; UInt16 b; UInt32 c; ... }MyStruct; MyStruct *pStruct;
Thank you very much,
BrownB



LinkBack URL
About LinkBacks



