Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.lang.c Subject: Re: Re: Question of Ignorance Message-ID: <5857@umcp-cs.UUCP> Date: Fri, 17-May-85 16:57:18 EDT Article-I.D.: umcp-cs.5857 Posted: Fri May 17 16:57:18 1985 Date-Received: Sun, 19-May-85 00:30:25 EDT References: <198@unccvax.UUCP>, <1427@bbncca.ARPA> <5590@utzoo.UUCP> <480@bbnccv.UUCP> <248@ucbcad.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 14 > #define FREE(ptr) free(char *) ptr); (char *) (ptr) = (char *) -1; > I have wanted to do this at various times... Try #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@umcp-cs ARPA: chris@maryland