Why does <conio.h> not work on my Mac? Non ANSI?
I am currently in week 7 of an 18 week C course and, over the past several weeks, I have had several problems with the examples given by my teacher. Some of you may remember this thread.
Once again, I have come across a situation where the example code, supplied by my teacher, works for the rest of the class (using Dev-C on Windows98 machines) but doesn't work for me (using MacOSX 10.4.5 and Xcode 2.2).
The problem stems from the header file <conio.h>. Whenever this is included in any example, Xcode throws up an error at compile time (technically, I guess it's GCC that throws up the error).
Now, true to form, my teacher absolutely insists that, like the fflush(stdin) function (see the thread I linked to above), the <conio.h> header file is completely ANSI compliant. Based on previous form, I am a bit skeptical...in the same way that the Pacific Ocean has a "bit" of water in it.
So, in the interests of clarification, can anyone tell me...
1) Whether or not <conio.h> is a standard ANSI header file?
2) What functions <conio.h> might be included for. I suspect that it might be getche() or getch() (I don't know what the difference is between those two, by the way. Any illumination would be appreciated), because whenever one or both of those pop up in an example, the <conio.h> header file is included.