in reply to kbhit equivalent
ANSI C does not define a kbhit() function. What do you expect it to do?
Alexander