> Because sizeof is not really the size of the struct, it is > the distance between adjacent structs in an array. > Alignment forces the extra bytes
I'm not quite sure I get what you're saying here. Yes, alignment pads out the structure. But I'm not sure where arrays come into it :- sizeof(struct whatever) is applicable to a single instance of a struct too. -- Jon Dowland -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]