finding offset of a member in C structures
Doug Gwyn
gwyn at smoke.brl.mil
Tue May 21 12:48:23 AEST 1991
In article <1991May20.212338.24349 at thyme.jpl.nasa.gov> kaleb at thyme.jpl.nasa.gov (Kaleb Keithley) writes:
>In article <16194 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>>In article <1276 at unisql.UUCP> pckim at unisql.UUCP (Pyung-Chul Kim) writes:
>>-can I get the offset of member2 at *compiling time* and *portably* ?
>>Yes, but you shouldn't very often need to do so.
>Opinion or Fact?
Both.
>Here's how *they* do in the X Window System. I expect it's about as
>portable as anything gets.
Wrong! I posted a portable method.
More information about the Comp.lang.c
mailing list