Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Mar 2002 12:34:36 +1000
From:      Greg Black <gjb@gbch.net>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        "Brian T.Schellenberger" <bts@babbleon.org>, Erik Trulsson <ertr1013@student.uu.se>, Ian <freebsd@damnhippie.dyndns.org>, freebsd-hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: A few questions about a few includes 
Message-ID:  <nospam-1015209276.55653@bambi.gbch.net>
In-Reply-To: <3C82D7D1.F9AD882C@mindspring.com>  of Sun, 03 Mar 2002 18:11:29 PST
References:  <XFMail.20020303091938.conrads@cox.net> <B8A7AB05.AAE6%freebsd@damnhippie.dyndns.org> <20020303180029.GA56041@student.uu.se> <20020304012020.A1681BA05@i8k.babbleon.org> <3C82D7D1.F9AD882C@mindspring.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:

| Order of structure elements is undefined.  Zero length arrays
| are undefined.  Also, packing is undefined.

Close, but no cigar.  The /order/ is defined in C89 (Section
6.5.2.1) with the following words:

    Within a structure object, the non-bit-field members and the
    units in which bit-fields reside have addresses that increase
    in the order in which they are declared.

Greg

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?nospam-1015209276.55653>