int in_string(char c, char *str) { int i = 0; while (str[i] != '\0') { if (str[i] == c) return(1); // return true i++; } return(0); // return false }