Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>strcoll() compare strings in locale-specific way</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 strcoll()               Compare Strings in Locale-Specific Way

 #include   <string.h>

 int strcoll(string1, string2);
 char *string1;                 First string to compare
 char *string2;                 Second string to compare

    strcoll() compares two strings using geographic locale-specific
    information to provide specific collating sequences. However,
    under MS C 6.0, only the minimal "C" locale is supported, so
    strcoll() is currently identical to strcmp().

    Returns:    * A negative value if string1 < string2
                * 0 if string1 = string2
                * A positive value if string1 > string2

 Portability:   Supported by the ANSI standard.


See Also: localeconv() setlocale() strcmp() strncmp() strxfrm()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson