if (p), where p is a pointer (apology)

Mike Durbin emike at riccb.UUCP
Thu Sep 19 23:50:03 AEST 1985


-----------

I wrote:
> NULL *IS* defined as (char *)0 and SHOULD only be used in comparisons
> with character pointers!

and I was wrong.  

Thanks for the (kind) replies that pointed out my error.
"... comparisons of pointers with a plain 0 are well-defined by the language."
-- 
unixunixunixunixunixunixunixunixunixunixunixunixunixunixunixunixunixunixunixuni
n									      x
i	E. Mike Durbin			...!ihnp4!			      u
x	ROCKWELL TELECOMMUNICATIONS	...!ihopa!riccb!emike		      n
u	Downers Grove IL		...!cuuxb!			      i
n	(312) 960-8658							      x
i									      u
xunixunixunixunixunixunixunixunixunixunixunixunixunixunixunixunixunixunixunixun



More information about the Comp.lang.c mailing list