Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Variable-length messages.
Message-ID: <1988Oct27.161901.1057@utzoo.uucp>
Organization: U of Toronto Zoology
References: <1988Oct22.231317.19640@utzoo.uucp> <926@goofy.megatest.UUCP>
Date: Thu, 27 Oct 88 16:19:01 GMT

In article <926@goofy.megatest.UUCP> djones@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@zoo.toronto.edu
