Raveesh
Member level 2
Hi,
I Need a some way to read a char from console , the problem with getchar() is, it waits for the user to enter some char on the console and returns that char ..
But in my application I want like, my program should be doing something and after sometime it reads whether the user entered anything at the console or not, if he has entered annthing reed that char otherwise again do something ,, this will be in continuous loop ..
is there anyway to do this...?
regards
I Need a some way to read a char from console , the problem with getchar() is, it waits for the user to enter some char on the console and returns that char ..
But in my application I want like, my program should be doing something and after sometime it reads whether the user entered anything at the console or not, if he has entered annthing reed that char otherwise again do something ,, this will be in continuous loop ..
is there anyway to do this...?
regards