"Roderick" <[email protected]> wrote:
>
> On Fri, 10 Apr 2020, Theo de Raadt wrote:
>
>> Because either string could be shorter than len.
>
> Thanks. I get it. :) My non-strings do not have a '\0' in the
> first len bytes and I need a case insensitive comparison.
> Of course I could ignore strncasecmp and use tolower() to write
> the trivial function, ...
UNIX, in its current form, is just messy like that...
>> "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.
>
> The word "string" is also found in the man pages of bcmp and memcmp.
> Wrote by that large contingent?
Hysterical confusion (akin to the 'tty' confusion: terminal or simple
serial port?). They would better be changed to speak of arrays.
> Rod.
Baai,
--zeurkous.
--
Friggin' Machines!