strcoll.3 (814B)
1 .TH strcoll 3 2 .SH NAME 3 strcoll - compare two strings using the current locale 4 .SH SYNOPSIS 5 #include <string.h> 6 7 int strcoll (const char *s1, const char *s2) 8 .SH DESCRIPTION 9 The 10 .BR strcoll () 11 function compares the string 12 pointed to by 13 .I s1 14 to the string pointed to by 15 .IR s2 , 16 both interpreted 17 as appropriate to the 18 LC_COLLATE category of the current locale. 19 .PP 20 The value returned shall be used to determine 21 if a string is lexicographically 22 greater than, lesser than or equal to 23 the other string, 24 according to the current locale. 25 .SH RETURN VALUE 26 The 27 .BR strcoll () 28 function shall return an integer 29 greater than, equal to or lesser than 0, 30 if the string pointed to by 31 .I s1 32 is greater than, equal to or lesser than 33 the string pointed to by 34 .IR s2 , 35 respectively. 36 .SH STANDARDS 37 ISO/IEC 9899:1999 Section 7.21.4.3