10.48.6 strncasecmp
¶
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/strncasecmp.html
Gnulib module: strncasecmp
Portability problems fixed by Gnulib:
- This function is missing on some platforms:
MSVC 14.
- This function uses the case mappings of a wrong locale on some platforms:
Solaris 11.4,
Cygwin 3.5.6.
Portability problems not fixed by Gnulib:
- This function cannot work correctly on character strings in multibyte locales.
Gnulib provides alternative functions
mbsncasecmp
and mbspcasecmp
that do a case insensitive comparison of character strings and that work in all
locales.