memcmp
Compares (with case sensitivity) two blocks of memory (function or macro)
#include <string.h> int memcmp ( const void *s1, const void *s2, size_t length);
memcmp 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 memcmp function or macro compares 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 (memcmp (buffer, "Hello ", 6) < 0) { printf ("Less than\n"); } }