in reply to kbhit equivalent

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

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)