Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: effect of free() Message-ID: <11052@smoke.BRL.MIL> Date: 13 Sep 89 18:17:35 GMT References: <319@cubmol.BIO.COLUMBIA.EDU> <3756@buengc.BU.EDU> <1989Aug17.005548.745@twwells.com> <16022@vail.ICO.ISC.COM> <248@seti.inria.fr> <1010@m3.mfci.UUCP> <10973@smoke.BRL.MIL> <247@bbxeng.UUCP> <10985@smoke.BRL.MIL> <10828@riks.csl.sony.co.jp> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <10828@riks.csl.sony.co.jp> diamond@ws.sony.junet (Norman Diamond) writes: >Scott-Engineering's posting implies these questions (among others): >(1) if a pointer variable contains a NULL value, then may that pointer > be compared to a NULL constant? >(2) if a pointer variable contains a NULL value, then may that pointer > be compared to a valid pointer value? No, it doesn't. If you were following this thread, it should have been clear that we were discussing invalid pointers that were "poison" to inspect. Null pointers are something entirely different, and of course the Standard allows you to do the obvious things with null pointers.