Re: discovering code points with embedded nulls

From: Doug Ewell (dewell@adelphia.net)
Date: Thu Feb 06 2003 - 11:24:15 EST

  • Next message: John H. Jenkins: "Re: VS vs. P14 (was Re: Indic Devanagari Query)"

    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



    This archive was generated by hypermail 2.1.5 : Thu Feb 06 2003 - 12:05:17 EST