The c-strncasecmp
module contains a case-insensitive string comparison
function operating on single-byte character strings, like the functions in
<strings.h>
, that operate as if the locale encoding was ASCII.
(The "C" locale on many systems has the locale encoding "ASCII".)
The function is:
extern int c_strncasecmp (const char *s1, const char *s2, size_t n);
For case conversion here, only ASCII characters are considered to be upper case or lower case.
Note: The function strncasecmp
from <strings.h>
supports only unibyte locales;
for multibyte locales,
you need the function mbsncasecmp
or mbspcasecmp
.