Need a small help.
I need to read the data from stdin (standard input) without hitting enter. Need to read the data as in and when they are typed in until EOF (CTRL + D as I am using UNIX) is encountered.
getc() - requires ENTER to be hit
getchar() - requires ENTER to be hit
getch() - not available in UNIX
Any suggestions would be of great help.