Mail Archives: djgpp/1993/05/06/22:57:41
I asked some equivalent functions of djgpp/gcc to BCC/TCC.
In writing the functions, I realized that a library libpc.a already has getch()
function which is equivalent to Borland C's getch() function.
The libpc.a library is supposed to use with <pc.h> include file, but pc.h does
not have the function declaration of getch(), and docs don't have such info.
(I am using djgpp 1.09 / gcc 2.2.2)
So, I think the following line should be added into the pc.h file in the gcc
include subdir:
char getch(void);
Then to use this getch() function, include <pc.h> and link with -lpc
Regards,
Wonkoo.
- Raw text -