1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| void conv(char mot[27])
{
int i;
for(i=0;i<strlen(mot);i++)
switch(mot[i])
{
case 'à':case 'á':case 'â' :case 'ã': case'ä' :case 'å':
mot[i]='a';
case 'ç':
mot[i]='c';
case 'è':case 'é':case 'ê' :case 'ë':
mot[i]='e';
case 'î':case 'í':case 'ì' :
mot[i]='i';
case 'ò':case 'ó':case 'õ' :case 'ö':
mot[i]='o';
case 'ú':case 'û':case 'ü' :
mot[i]='u';
case 'ñ':
mot[i]='n';
default:
mot[i]=toupper(mot[i]);
}
for(i=0;i<strlen(mot);i++)
mot[i]=toupper(mot[i]);
} |