Is there a C function used to read characters from keyboard that does not return newlines ?
I have tried getchar() and scanf() .But both of it failed.
Please tell me if there is a function.
Is there a C function used to read characters from keyboard that does not return newlines ?
I have tried getchar() and scanf() .But both of it failed.
Please tell me if there is a function.
scanf() receives until a spacebar is entered ie.only one string is accepted . This can be overcome by using 
scanf("%[^\n]s",str);.
It waits until newline is entered. gets() is also an alternative to receive string until newline is entered.
