www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/05/06/22:57:41

Date: Thu, 6 May 1993 22:39 EST
From: "Wonkoo Kim, EE, U. of Pittsburgh" <WKIM AT vms DOT cis DOT pitt DOT edu>
Subject: getch()
To: djgpp AT sun DOT soe DOT clarkson DOT EDU

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019