Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!tgr!gwyn@Brl.ARPA From: gwyn@Brl.ARPA (VLD/VMB) Newsgroups: net.lang.c Subject: Re: Casting call Message-ID: <10946@brl-tgr.ARPA> Date: Thu, 23-May-85 08:26:08 EDT Article-I.D.: brl-tgr.10946 Posted: Thu May 23 08:26:08 1985 Date-Received: Fri, 24-May-85 08:26:49 EDT Sender: news@brl-tgr.ARPA Lines: 9 >> #define FREE(ptr) { free((char *) ptr); ptr = (typeof ptr) NULL; } > ... If we were using ANSI C, ... One doesn't even need any of the new ANSI C features: #define FREE( ptr ) ( free( (char *)ptr ), ptr = NULL ) since one can always assign 0 (NULL) to any pointer type.