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, ...
"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? Rod.

