Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    int strcoll( const char *s1,
                 const char *s2 );

Description:
    The  strcoll function compares the string pointed to by s1 to the string
    pointed to by s2.  The comparison uses the collating sequence selected
    by the  setlocale function.  The function will be equivalent to the
     strcmp function when the collating sequence is selected from the "C"
    locale.

Returns:
    The strcoll function returns an integer less than, equal to, or greater
    than zero, indicating that the string pointed to by s1 is less than,
    equal to, or greater than the string pointed to by s2, according to the
    collating sequence selected.

See Also:
    setlocale, strncmp, _fstrncmp

Example:
    #include <stdio.h>
    #include <string.h>

    char buffer[80] = "world";

    void main()
      {
        if( strcoll( buffer, "Hello" ) < 0 ) {
            printf( "Less than\n" );
        }
      }

Classification:
    ANSI

Systems:
    All

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