strnicoll()

Locale-aware collating string comparison that ignores letter case and limits length.

  #include <extras/extras_string.h>
  
  int stricoll(const char *s1, const char *s2, size_t max);    
Parameter

s1

A pointer to a null-terminated character string.

s2

A pointer to a null-terminated character string.

max

The maximum number of characters to compare.

Remarks

This function compares each character at s1 and s2 using the collating sequence specified by the LC_COLLATE component of the current locale. It ignores the case of alphabetic characters. The function stops when it reaches a 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.