D
Dan Pop
In said:So, what do you think of people who use NULL?
It depends on whether they are using it correctly or not ;-)
These symbolic constants are equally useful and/or useless (depending on
your point of view), in the context of a language where an integer constant
zero serves a number of roles!
The purpose of NULL is to avoid using 0 in a context where an integer
doesn't *naturally* belong.
END_OF_STRING serves no such purpose: 0 or '\0' are perfectly natural
representations of the null character and there is exactly one reason
for having a null character inside a string.
Dan