home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!uunet.ca!wildcan!sq!msb
- From: msb@sq.sq.com (Mark Brader)
- Subject: Re: struct hack (was: Is this ANSI?)
- Message-ID: <1992Nov23.085112.2733@sq.sq.com>
- Summary: Clarification
- Organization: SoftQuad Inc., Toronto, Canada
- References: <By0vu2.7AF@unx.sas.com> <24262@alice.att.com> <1992Nov22.134020.16968@sq.sq.com>
- Date: Mon, 23 Nov 92 08:51:12 GMT
- Lines: 16
-
- I wrote:
-
- > [3] 3.1.2.5 says that a pointer contains a reference to an object and
- > says nothing to allow it to possibly containing other information.
- > Therefore fmptr->data is equivalent to p+offsetof(struct FM,data) ...
-
- Here and farther down in the article, by fmptr->data, I meant of
- course the pointer to which this array-valued expression decays when
- its value is taken as an operand to + or [], as specified in 3.2.2.1.
- Sorry about that.
- --
- Mark Brader "A clarification is not to make oneself clear.
- SoftQuad Inc., Toronto It is to PUT oneself IN the clear."
- utzoo!sq!msb, msb@sq.com -- Lynn & Jay, "Yes, Prime Minister"
-
- This article is in the public domain.
-