(ANSI Standard)
#include <string.h> int strcoll(const char *str1,const char *str2);
The strcoll function is exactly like strcmp, except that the results of strcoll are locale-dependent; strcoll performs its comparison using the character collating sequence of the current locale. For example, a particular locale might use a collating sequence where uppercase letters compare equal to their lowercase counterparts. By contrast, strcmp operates strictly according to the ordering sequence of the execution character set.
The strcoll function returns 0 if the strings are equal, a positive number if str1 is greater than str2, and a negative number if str1 is less than str2.
Copyright © 1996, Thinkage Ltd.