STRCOLL - compare with different collating sequence.

(ANSI Standard)

Usage:

#include <string.h>
int strcoll(const char *str1,const char *str2);

Where:

const char *str1,*str2;
are the strings to be compared.

Description:

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.

See Also:

expl nsc lib memcmp

expl nsc lib strcmp

expl nsc lib strncmp

Copyright © 1996, Thinkage Ltd.