It is case-insensitive . The behavior is NOT undefined (it is well-defined) if either string is a null ptr. Regular strncmp() has undefined behavior if either string is a null ptr (see: https://en.cppreference.com/w/cpp/string/byte/strncmp).28 Nis 2011
Read moreHow do you make something not case-sensitive in C?
To make strncmp case-insensitive, use strncasecmp from #include <strings . h> . strncasecmp can be used in exactly the same way as strncmp. Note that both of these will not deal with unicode characters correctly, but will work just fine in most applications.13 Ağu 2019
Read more