Character string comparison with length specified and ignored letter case.
#include <extras/extras_string.h> int strncasecmp(const char *s1, const char *s2, size_t max);
str1
A pointer to a character string.
str2
A pointer to a character string.
max
The maximum number of characters to compare.
This function compares the characters at s1 and s2, ignoring letter case. It stops when it reaches the null character or when it has compared max characters.
This function returns one of these values:
This facility is not specified in the ISO/IEC standards. It is an EWL extension of the standard libraries.