delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/29/10:13:40

Date: Sat, 29 Apr 2000 10:48:05 -0400
Message-Id: <200004291448.KAA08365@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <8eeqgp$bvp$1@plato.wadham.ox.ac.uk>
(jstacey AT plato DOT wadham DOT ox DOT ac DOT uk)
Subject: Re: Weird : Segmentation fault on fwrite :(
References: <956963090 DOT 719428 AT romulus DOT infonie DOT fr> <957001855 DOT 943830 AT romulus DOT infonie DOT fr> <8eef1d$ai7$1 AT plato DOT wadham DOT ox DOT ac DOT uk> <390adf87 DOT 104978688 AT news DOT freeserve DOT net> <8eeqgp$bvp$1 AT plato DOT wadham DOT ox DOT ac DOT uk>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> that foo[5] is equivalent to 5[foo] has just had me entertaining thoughts
> of the construct &5, which I have yet to rationalize.

The fun construct is XtOffset(), which is like this:

#define XtOffset(type, field) ((int)&(((type *)0)->field))

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019