Article View: comp.std.c
Article #1098Re: references to dereferenced null pointers
From: Doug Gwyn
Date: Fri, 16 Mar 1990 23:07
Date: Fri, 16 Mar 1990 23:07
7 lines
852 bytes
852 bytes
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.
Technical Details
Message-ID:
<12363@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwynReferences:
<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>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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