Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!iWarp.intel.com!ichips!inews!bishop!bhoughto From: bhoughto@bishop.intel.com (Blair P. Houghton) Newsgroups: comp.std.c Subject: Re: call to revolt Message-ID: <4880@inews.intel.com> Date: 27 Jun 91 01:53:14 GMT Article-I.D.: inews.4880 References: <992@baby.and.nl> <782@taumet.com> Sender: news@inews.intel.com Organization: Intel Corp, Chandler, AZ Lines: 20 In article <782@taumet.com> steve@taumet.com (Stephen Clamage) writes: >jos@and.nl (J. Horsmeier) writes: > >>In article rabson@physics.ubc.ca (David Rabson) writes: >>> void *thing; >>> ((int *)thing)++; > > (*((int **)&thing))++; > thing = (int*)thing + 1; This'll do it, too: thing += (int *)1; (see ANSI X3.159-1989, sec. 3.3.16.2, p. 55, ll. 20-21, and footnote 51 at the bottom of p. 51, for proof...) --Blair "If void* was meant to fly, X3J11 would have given it wings..."