int str_char(const char str[], int c) {
int n=0;
do if (str[n] == c) return n;
while (str[n++] != '\0');
return -1;
}