Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!gatech!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: use of NULL Keywords: NULL zero 0 C Microsoft Message-ID: <9582@smoke.BRL.MIL> Date: 4 Feb 89 06:49:13 GMT References: <1167@unisec.usi.com> <5312@turnkey.TCC.COM> <1989Jan31.021121.13816@gpu.utcs.toronto.edu> <1340@uwbull.uwbln.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <1340@uwbull.uwbln.UUCP> ckl@uwbln.UUCP (Christoph Kuenkel) writes: >Why at all should I ever use NULL anywhere? Some think that use of a mnemonic makes the code more intelligible. If C were being designed now, I would recommend that "nil" be made a language keyword. >its much more obvious to write 0, when I mean zero, ((char *) 0) when >I mean a zero character pointer, etc. etc. Using 0 instead of NULL is perfectly acceptable.