memicmp
Compares, with case insensitivity (uppercase and lowercase characters are equivalent), the first length characters of two objects
#include <string.h> int memicmp ( const void *s1, const void *s2, size_t length);
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.
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.
#include <string.h> #include <stdio.h> main () { char buffer[80]; if (memicmp (buffer, "Hello", 5) < 0) { printf ("Less than\n"); } }