Locale-aware collating string comparison with limited length.
#include <extras/extras_string.h> int strncoll(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.
The function performs the comparison according to the collating sequence specified by the LC_COLLATE component of the current locale. The function stops when it has reached a null character in one of the strings 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.