Code:
void noCase(char *s, int slen){
int i;
int c;
for(i=0;i<slen+1;i++)
{
c = (int) *s;
if (c>96 && c<123){c = c - 32; *s = (char)c;};
s=s+1;
}
}
Here is an example with the code above
char username[]="MyNaMe";
noCase(&username,6);
Now username="MYNAME". The code makes everything be capitalized. For everything you do is for each character treat it as its capitalized. e.g. if you want to compare 2 strings. After the string when through my code it will all be capitalized. Then compare them.
Hope that helps!