NULL is a macro that expands to an implementation-defined null pointer
constant. A literal 0 is a null pointer constant; so is `((void*)0)`.
If an implementation has `#define NULL 0`, then `(NULL == 1)` will
compile without error.
A warning would be nice (NULL *should't* be used in that context), but
it's not required.
--
Keith Thompson (The_Other_Keith)
ks...@mib.org <
http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"