I'm having trouble finding a function to use which compares two strings, disregarding case.
this is the simple program I'm trying to use the strcasecmp function in and, obviously, strcasecmp isn't recognized as a function. I just left it into show how I hope to use the function or it's equivalent
//String compare
#include<stdio.h>
#include<string.h>
int main(void)
{
char string[16];
char password[] = "please";
int result;
printf("Enter your secret password:\n");
gets(string);
result = strcasecmp(string,password);
if (result==0)
puts("Entry granted!");
else
puts("Sorry. Wrong password.");
printf("\n\n\n");
return(0);
}
Thanks