Hey everyone,
I'm working on function that will take in a char array, prompt the user to input a string, and then return that string to the function. Below is what I've been working on and yes, I know it is not the right syntax, but I'm hoping someone could help me fix it so it works. Thanks!
-Barefoot
char getString(char)
int main() {
char string[200];
string = getString(string);
}
char getString(char string) {
scanf("%s",string);
return string;
}