AnsweredAssumed Answered

Non-blocking function to detect Console stdin input? conio.h? kbhit()?

Question asked by Ron Koch on Sep 13, 2017
Latest reply on Sep 13, 2017 by Ron Koch

I'm looking for a way to input data on stdin, but with a non-blocking function. Everything I've tried in stdio.h blocks program execution while waiting for a keypress. I want to input a keypress if one has occurred, but continue program execution if one has not. 


I understand the function kbhit() is usually in conio.h, but that library isn't present in my AC6 install. Is it available?


Is there another way?