Hi to all,
I was wondering if you guys can help me with this tricky stdin problem?
Suppose I want my c program to accept input. But at the same time I want to detect Ctrl D as well.
For example,
Your input: test123^D
^D is shown when I press the combination keys Ctrl D.
How do I detect Ctrl D if there are characters before it? For the record, I am able to detect Ctrl D by itself.
Your input: ^D<Press Enter>
Thanks.



LinkBack URL
About LinkBacks



