"Ron Natalie" <ron(a)ronnatalie.com> wrote:
Frankly, I have immense distaste for the definition
NULL. Especially
those implementations that try to fix it by introducing a spurious cast
on it.
I'll agree with the latter part. But in my own code I try to be very
careful to use NULL for pointers, '\0' for end of string, and 0 for
numbers. Even though 0 could be used in all three cases, the different
forms make it much more clear what the type of data is that I'm working
with.
My two cents,
Arnold