#include <stdio.h>
int myToUpper(char s[],char t[]){
int i;
for(i=0;s[i]!='\0';i++){
if('a'<=s[i] && s[i]<='z') s[i]=s[i]-32;
}
for(i=0;t[i]!='\0';i++){
if('a'<=t[i] && t[i]<='z') t[i]=t[i]-32;
}
return 0;
}
int fuzzyStrcmp(char s[],char t[]){
int i;
myToUpper(s,t);
for(i=0;s[i]==t[i];i++){
if(s[i]=='\0') return 1;
}
return 0;
}
int main(void) {
int i;
char s[100],t[100];
fuzzyStrcmp(s,t);
printf("-> %d",fuzzyStrcmp
(s
,t
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbXlUb1VwcGVyKGNoYXIgc1tdLGNoYXIgdFtdKXsKCWludCBpOwoJZm9yKGk9MDtzW2ldIT0nXDAnO2krKyl7CgkJaWYoJ2EnPD1zW2ldICYmIHNbaV08PSd6Jykgc1tpXT1zW2ldLTMyOwoJfQoJZm9yKGk9MDt0W2ldIT0nXDAnO2krKyl7CgkJaWYoJ2EnPD10W2ldICYmIHRbaV08PSd6JykgdFtpXT10W2ldLTMyOwoJfQoJcmV0dXJuIDA7Cn0KCmludCBmdXp6eVN0cmNtcChjaGFyIHNbXSxjaGFyIHRbXSl7CglpbnQgaTsKCW15VG9VcHBlcihzLHQpOwoJZm9yKGk9MDtzW2ldPT10W2ldO2krKyl7CgkJaWYoc1tpXT09J1wwJykgcmV0dXJuIDE7Cgl9CglyZXR1cm4gMDsKfQoKaW50IG1haW4odm9pZCkgewoJaW50IGk7CgljaGFyIHNbMTAwXSx0WzEwMF07CglzY2FuZigiJXMgJXMiLHMsdCk7CglwcmludGYoIiVzICVzXG4iLHMsdCk7CglmdXp6eVN0cmNtcChzLHQpOwoJcHJpbnRmKCItPiAlZCIsZnV6enlTdHJjbXAocyx0KSk7CglyZXR1cm4gMDsKfQo=