LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   conio.h question (https://www.linuxquestions.org/questions/programming-9/conio-h-question-387877/)

abk4523 11-30-2005 07:47 AM

conio.h question
 
I copied conio.h from a site (doxygen possibly), to test. I tried using the getch() function with it but keep getting undefined function errors. I know I can use the getchar() function and stdio.h library to get around this, but I thought getch() was part of conio.h. Is this not true or did I get a bad copy? Just curious. Thanks for the input.

dmail 11-30-2005 07:52 AM

I may well be wrong, but I thought conio.h was a microsoft include?

bigearsbilly 11-30-2005 08:36 AM

conio.h is for MS only.
not part of C.

vivekr 11-30-2005 11:16 AM

As they said getch() and functions like kbhit() that belong to conio.h are implemented in function calls related to DOS and hence cannot be used in Linux environment.


All times are GMT -5. The time now is 04:18 AM.