Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: references to dereferenced null pointers Message-ID: <12363@smoke.BRL.MIL> Date: 16 Mar 90 23:07:03 GMT References: <51083@microsoft.UUCP> <25EB8EE8.8462@paris.ics.uci.edu> <1990Mar12.175613.12082@utzoo.uucp> <1623@argus.UUCP> <12347@smoke.BRL.MIL> <1136@philmtl.philips.ca> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <1136@philmtl.philips.ca> ray@philmtl.philips.ca (Raymond Dunn) writes: >As an example you could define: >#define NOPTR(type) ((type *)-1) A conforming implementation is not required to support this. It is much better to simply use the implementation-defined NULL macro or simply (type*)0.