P
Profetas
Hi,
How do I read a char from stdin before the '\n' is pressed?
for example I know that I can use getch() to read a single char from the
user input, but suppose I wanted to read before the carriage return is
pressed.
for example I type a char and the following actions is done before the
'\n' is pressed.
Thanks
How do I read a char from stdin before the '\n' is pressed?
for example I know that I can use getch() to read a single char from the
user input, but suppose I wanted to read before the carriage return is
pressed.
for example I type a char and the following actions is done before the
'\n' is pressed.
Thanks