🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3208

Re: call to revolt

#3208
From: Blair P. Houghton
Date: Thu, 27 Jun 1991 01:53
20 lines
1047 bytes
In article <782@taumet.com> steve@taumet.com (Stephen Clamage) writes:
>jos@and.nl (J. Horsmeier) writes:
>
>>In article <rabson.677868220@physics.ubc.ca> 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..."
Technical Details
Message-ID: <4880@inews.intel.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!iWarp.intel.com!ichips!inews!bishop!bhoughto
References: <rabson.677868220@physics.ubc.ca> <992@baby.and.nl> <782@taumet.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <rabson.677868220@physics.ubc.ca> <992@baby.and.nl> <782@taumet.com>
Sender: news@inews.intel.com
Organization: Intel Corp, Chandler, AZ
Lines: 20