references to dereferenced null pointers

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Mar 17 09:07:03 AEST 1990


In article <1136 at philmtl.philips.ca> ray at 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.



More information about the Comp.std.c mailing list