E
Eduardo Elias Camponez
Hi
Im doing a C code using GCC.
I tried to compare (case Incensitive) two strings.. but it seems dont
"know" strcmpi.. Im using 2 headers string.h and stdio.h
How can I do this?
Ex:
#include <stdio.h>
#include <string.h>
int main (void)
{
char * str = "Case";
char * str1 = "cAsE";
if (strcmpi(str,str1)==0)
printf("Same\n");
else
printf("Sorry\n");
}
Tks
Eduardo Elias Camponez
Im doing a C code using GCC.
I tried to compare (case Incensitive) two strings.. but it seems dont
"know" strcmpi.. Im using 2 headers string.h and stdio.h
How can I do this?
Ex:
#include <stdio.h>
#include <string.h>
int main (void)
{
char * str = "Case";
char * str1 = "cAsE";
if (strcmpi(str,str1)==0)
printf("Same\n");
else
printf("Sorry\n");
}
Tks
Eduardo Elias Camponez