function to detect keyboard hit

Sven Eschenberg
Mon Mar 13 23:22:00 GMT 2006

Hi there,

This is not a question of the compiler in use, but rather a question 
about which functionality a lib offers. In this case it's not a part of 
the standard C lib, afaik, and rather os dependant. If the standard c 
lib should offer such functions, you can find it in the library 
documentation ...


Shen, Xinzhuo (US SSA) wrote:

>Dear Sir/Madam:
>Is there a function in gcc to detect a keyboard hit?  Windows provides a
>function _kbhit().  It operates in non-blocking mode, returns 0 until
>the user hits a key on the keyboard.  Does gcc have the similar function
>to call?

More information about the Gcc-help mailing list