EBCDIC control characters

Richard Wordingham richard.wordingham at ntlworld.com
Sat Jun 20 12:34:33 CDT 2020


On Sat, 20 Jun 2020 19:00:51 +0200
Corentin via Unicode <unicode at unicode.org> wrote:

> To be super pedantic, strings *are* arrays, but they decay to pointers
> really easily, at which point the only way to know their size is to
> look for 0x0, which made sense at one point in 1964 - if you never
> use strlen you are fine. in fact it is common for people to use
> multiple null as string delimiters within a larger array

I think almost all the functions in string.h go wrong if you want to
treat NUL as an ordinary character.  strncpy(), strncmp() and strncat()
certainly do.  Inserting NUL into a C string chops it up into multiple
C strings.

Richard.


More information about the Unicode mailing list