Kent Karlsson <kentk at md dot chalmers dot se> wrote:

>> From what I'm hearing from you all is that a null in UTF-8 is
>> for termination and termination only.
>> Is this correct?
>
> No, NULL is a character (actually a control character) among many
> others. However, many C/C++ APIs (mis)use NULL as a string terminator
> since NULL isn't very useful for other things.

The use of NULL to terminate strings is a basic part of the Standard C
library, not just certain APIs.  As such, it doesn't seem right to call
this a "misuse" of the character.

-Doug Ewell
 Fullerton, California


Reply via email to