Article View: comp.std.c
Article #5315Re: The offsetof macro
From: Doug Gwyn
Date: Wed, 31 Aug 1988 10:47
Date: Wed, 31 Aug 1988 10:47
7 lines
774 bytes
774 bytes
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.
Technical Details
Message-ID:
<8402@smoke.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!purdue!haven!umd5!adm!smoke!gwynReferences:
<16490006@hpcllca.HP.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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) <gwyn>) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7