Variable-length messages.

Henry Spencer henry at utzoo.uucp
Fri Oct 28 02:19:01 AEST 1988


In article <926 at goofy.megatest.UUCP> djones at megatest.UUCP (Dave Jones) writes:
>Is it not possible that one compiler might put msgBody on an
>even address and another one put it on an odd address, and another
>one put it on a double-word boundary?

Yes, but that won't foul up the example proposed, provided that the code
is aware of the possibility of holes in the struct.  The key point is that
msgBody is guaranteed to be at the end of the struct (modulo any trailing
padding).
-- 
The dream *IS* alive...         |    Henry Spencer at U of Toronto Zoology
but not at NASA.                |uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list