call to revolt

Blair P. Houghton bhoughto at bishop.intel.com
Thu Jun 27 11:53:14 AEST 1991


In article <782 at taumet.com> steve at taumet.com (Stephen Clamage) writes:
>jos at and.nl (J. Horsmeier) writes:
>
>>In article <rabson.677868220 at physics.ubc.ca> rabson at 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..."



More information about the Comp.std.c mailing list