char* subst(char *str, char c1, char c2){
char *p = str;
while(*p){
if(*p == c1){
*p = c2;
}
p++;
}

return *str;
}