alternative zu "kbhit()"-Funktion unter linux(standard bibliotheken)
-
ich kenne die funktion kbhit nur unter windows, und dann mit der
bibliothek "conio.h".
doch diese gibt es nicht unter linux
kennt jemand eine alternative???
okay, bis dann
-
- conio.h ist keine Bibliothek
- wenn kbhit() in der Standard Lib waere, wuerde wohl niemand eine plattformabhaengige Variante verwenden
- Wenn du eine Linux Loesung willst, was machst du dann im C Forum?
-
http://linux-sxs.org/programming/kbhit.html
kbhit() is not available on Linux (UNIX), it is a DOS function. Below is some code (functions) to replace the "kbhit" functionality
-