memicmp

Compares, with case insensitivity (uppercase and lowercase characters are equivalent), the first length characters of two objects

Local Servers:nonblocking
Remote Servers:N/A
Classification:Other
Service:Memory Manipulation

Syntax

  #include <string.h> 
    
  int memicmp  (  
     const void   *s1,   
     const void   *s2,  
     size_t        length);
  

Parameters

s1
(IN) Points to the first object.
s2
(IN) Points to the second object.
length
(IN) Specifies the number of characters to compare.

Return Values

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.

Remarks

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

See Also

memchr, memcmp, memcpy, memset

Example

  #include <string.h>  
  #include <stdio.h>  
   
  main ()  
  {  
     char   buffer[80];  
     if (memicmp (buffer, "Hello", 5) < 0)  
     {  
        printf ("Less than\n");  
     }  
  }