"Francois Gouget" fgouget@free.fr wrote:
<rant> I checked the other cases and I have this question. Why does everyone use 0 instead of '\0', 0 instead of FALSE, and '\0' instead of NULL? MS even does the reverse and uses NULL in places where '\0' or 0 would have been more appropriate. Man, if you know what you're doing prove it and use the appropriate form: either 0, '\0' or NULL. I know this comes from from someone who just forgot to put a trailing '\0'. But still. </rant>
IMO it doesn't matter in the most cases, if you do not mix pointer data type (NULL) and others. '\0' == 0, and even better to use 0, because it automatically get casted by the compiler to the appropriate data type.