C optimizer

Karl Heuer karl at haddock.ima.isc.com
Fri Feb 24 07:48:59 AEST 1989


In article <1028 at frog.UUCP> john at frog.UUCP (John Woods) writes:
>In article <3121 at ficc.uu.net>, peter at ficc.uu.net (Peter da Silva) writes:
>>Can anyone think of any pure system calls?
>
>[What about getpid()?]

Nope.
	register int i = getpid();
	if (fork() != 0) exit(0);
	if (getpid() != i) printf("impure!\n");

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list