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 strnicmp( const char *s1,
                  const char *s2,
                  size_t len );
    int _fstrnicmp( const char __far *s1,
                    const char __far *s2,
                    size_t len );

Description:
    The strnicmp and _fstrnicmp functions compare, without case sensitivity,
    the string pointed to by s1 to the string pointed to by s2, for at most
    len characters.

    The _fstrnicmp function is a data model independent form of the strnicmp
    function that accepts far pointer arguments.  It is most useful in mixed
    memory model applications.

Returns:
    The strnicmp and _fstrnicmp functions return 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.

See Also:
    strcmp, _fstrcmp, stricmp, _fstricmp, strncmp, _fstrncmp

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

    void main()
      {
        printf( "%d\n", strnicmp( "abcdef", "ABCXXX", 10 ) );
        printf( "%d\n", strnicmp( "abcdef", "ABCXXX",  6 ) );
        printf( "%d\n", strnicmp( "abcdef", "ABCXXX",  3 ) );
        printf( "%d\n", strnicmp( "abcdef", "ABCXXX",  0 ) );
      }

    produces the following:

    -20
    -20
    0
    0

Classification:
    WATCOM

Systems:
     strnicmp - All

    _fstrnicmp - All

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