Question of Ignorance

Chris Torek chris at umcp-cs.UUCP
Sat May 18 06:57:18 AEST 1985

> #define FREE(ptr)	free(char *) ptr); (char *) (ptr) = (char *) -1;

> I have wanted to do this at various times...


#define FREE(p) (free ((char *) (p)), *(char **) &(p) = (char *) -1)

(not that there is any guarantee that this does anything useful and/or
makes sense in the machine's architecture.)
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland

More information about the Comp.lang.c mailing list