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

The strcoll( ) function compares the string pointed to by str1 with the one pointed to by str2. The comparison is performed in accordance with the locale specified using the setlocale( ) function. See setlocale( ).

The strcoll( ) function returns an integer that is interpreted as indicated here:



Less than zero

str1 is less than str2


str1 is equal to str2

Greater than zero

str1 is greater than str2

Related functions are memcmp( ) and strcmp( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: