Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!purdue!haven!umd5!adm!smoke!gwyn From: gwyn@smoke.ARPA (Doug Gwyn ) Newsgroups: comp.std.c Subject: Re: The offsetof macro Message-ID: <8402@smoke.ARPA> Date: 31 Aug 88 10:47:15 GMT References: <16490006@hpcllca.HP.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <16490006@hpcllca.HP.COM> walter@hpcllca.HP.COM (Walter Murray) writes: >So what is a valid way to define offsetof? There is no portable way to #define an offsetof() macro in C. The usual method you already know will nonetheless work on a large number of implementations. Others may have to use a compiler intrinsic for this.