la mia f.ne dovrebbe passare

char *cerca_carattere (char a[], char c, int dim).....