Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!ron From: ron@brl-tgr.ARPA (Ron Natalie) Newsgroups: net.lang.c Subject: Re: Re: offsets in structures. Message-ID: <5365@brl-tgr.ARPA> Date: Wed, 17-Oct-84 15:43:47 EDT Article-I.D.: brl-tgr.5365 Posted: Wed Oct 17 15:43:47 1984 Date-Received: Thu, 18-Oct-84 19:13:52 EDT References: <393@orion.UUCP> <6080@mcvax.UUCP> <9386@watmath.UUCP> <527@wjh12.UUCP> Organization: Ballistic Research Lab Lines: 11 > The expression can be made portable, at least under UNIX, by > having > extern end; > somewhere in a header file, and then replacing "0" in the expression by > "&end". For maximum portability, of course, use a real object of type > struct foo in the expression. FOO! WRONG! On non-byte addressed machines this isn't guaranteed to work either. -Ron