Hi
I want to make a programm that takes a text line from the keyboard, and then I want to use the line as a parameter in a function.
Here is my code:
Code:
#include <stdio.h>
main()
{
char line;
scanf("%s",line);

/*NOW USE THE TEXT LINE WHILE CALLING A FUNCTION*/
}
This code just names line the first word of the line, not the whole line!!!
What can I do?
I tried getchar, in a while and stored the text in a array, but I get segmentations and don't know how to use tha whole array as a parameter in my function.

Thx for your help,
antonis