theo wrote:
> Because either string could be shorter than len.
>
>  strncasecmp() and strncasecmp_l() compare at most len characters.
>  ^^^^^^^
>
> "NUL-terminated string" is firmly explaining to people that in C,
> a string is only a string if it ends in a NUL. There's a large
> contingent of folk who don't get it.

As an example of what happens when folks don't get it: [0].

In general, me'd strongly suggest that we speak of an 'array' when it's
not zero-terminated (that again should be redundant information here,
but yeah).

Baai,

        --zeurkous.

[0] 'https://doomwiki.org/wiki/Absurd texture name in error message'

-- 
Friggin' Machines!

Reply via email to