Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>memicmp</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
memicmp

Usage

   #include <string.h>
   int memicmp(const void *buf1, const void *buf2, size_t count);

   ANSI

Description

   The function memicmp compares the first count characters from buf1
   with those in buf2 on a byte for byte basis, without reference to the case of
   the letters being compared. Uppercase and lowercase letters are considered
   to be equivalent. All uppercase (capital) letters in both buf1 and buf2 are
   converted to lowercase before the comparison is done. This function is
   identical to memcmp except that case is ignored.

Example 

   #include <string.h>

   #include <stdio.h>
   #include <stdlib.h>

   int main()
   {
       char buffer1[50];
       char buffer2[50];
       int result;

       strcpy(buffer1,"Sample String\n");
       strcpy(buffer2,"sample 2 String\n");

       printf("memicmp function in progress\n");
       result = memicmp(buffer1,buffer2,50);
       printf("The result of memicmp is: %d\n",result);
       return EXIT_SUCCESS;
   }

Return Value

   memicmp returns an integer value which depends on the relationship of
   buf1 to buf2, as follows:

   <0               buf1 less than buf2

   =0               buf1 identical to buf2

   >0               buf1 greater than buf2


See Also

   memcmp, memchr, memcpy, memset



See Also: memcmp memchr memcpy memset

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