I'm confused (Re: What C compilers have non-zero null pointers?)
Steve Summit
scs at adam.mit.edu
Mon Jul 23 22:26:12 AEST 1990
In article <9007201132.AA06954 at edison.CHO.GE.COM> rja <rja at edison.cho.ge.com> writes:
>It is true without doubt that both K&R and ANS X3.159 C
>both guarantee that comparing a pointer to "0" is the
>same as comparing a pointer to "NULL."
>It is also something that is broken on several widely
>used C compilers for the Intel segmented architecture.
It wouldn't hurt if you named names. The existence of such
broken compilers is one of the reasons that null pointer
confusion never ends. A compiler that doesn't properly treat "0"
as a source-code null pointer is truly broken, and its vendor
couldn't complain about libel or slander if that fact were
mentioned here. (If the compiler in question is in fact not
broken, or if it has been fixed in a later version, it would be
nice to get the word out to those who had believed it was broken
so they can stop being duplicitous about NULL, either.)
Steve Summit
scs at adam.mit.edu
More information about the Comp.lang.c
mailing list