RE: discovering code points with embedded nulls

From: Marco Cimarosti (
Date: Thu Feb 06 2003 - 13:03:34 EST

  • Next message: Marco Cimarosti: "RE: discovering code points with embedded nulls"

    Doug Ewell wrote:
    > 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.

    Moreover, I always thought that serving as a string terminator or data-end
    sentinel is exactly the function NUL was designed for.

    _ Marco

    This archive was generated by hypermail 2.1.5 : Thu Feb 06 2003 - 13:39:57 EST