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 Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    int memicmp( const void *s1,
                 const void *s2,
                 size_t length );
    int _memicmp( const void *s1,
                  const void *s2,
                  size_t length );
    int _fmemicmp( const void __far *s1,
                   const void __far *s2,
                   size_t length );

Description:
    The memicmp function compares, with case insensitivity (upper- and
    lowercase characters are equivalent), the first length characters of the
    object pointed to by s1 to the object pointed to by s2.

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

    The _memicmp function is identical to memicmp.  Use _memicmp for
    ANSI/ISO naming conventions.

Returns:
    The memicmp function returns an integer less than, equal to, or greater
    than zero, indicating that the object pointed to by s1 is less than,
    equal to, or greater than the object pointed to by s2.

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

    void main()
      {
        char buffer[80];

        if( memicmp( buffer, "Hello", 5 ) < 0 ) {
          printf( "Less than\n" );
        }
      }

Classification:
    WATCOM

_memicmp conforms to ANSI/ISO naming conventions

Systems:
     memicmp - All, Netware

    _memicmp - DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32
    _fmemicmp - All

See Also:
    memchr, memcmp, memcpy, memset

See Also:

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