[TUHS] Comments in early Unix systems
arnold at skeeve.com
arnold at skeeve.com
Fri Mar 23 02:32:28 AEST 2018
"Ron Natalie" <ron at 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
More information about the TUHS
mailing list