Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!uunet!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.lang.c Subject: Re: finding offset of a member in C structures Message-ID: <1991May29.021732.22980@kithrup.COM> Date: 29 May 91 02:17:32 GMT References: <16194@smoke.brl.mil> <1991May20.201857.635@lynx.CS.ORST.EDU> <1991May25.054608.6647@cunixf.cc.columbia.edu> Organization: Kithrup Enterprises, Ltd. Lines: 15 In article <1991May25.054608.6647@cunixf.cc.columbia.edu> dmj@cunixa.cc.columbia.edu (Douglas M Jaffe) writes: >i have to check my ansi reference for offsetof(). however, i wouldn't >rely on the assumption that offsetof() will exist in every >__STDC__ (stupid c) compiler that you encounter. I would, since it's part of ANSI, and I'd rely on it as much as I would vfprintf. Grab your nearest ANSI C document, and look at what's in -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.