strncasecmp - case-insensitive string comparison
#include <strings.h> int strncasecmp(const char *s1, const char *s2, size_t n);
Refer to strcasecmp().