Use strncasecmp() to compare with case insensitive