home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
273_01
/
getca.cc
< prev
next >
Wrap
Text File
|
1987-09-28
|
302b
|
13 lines
#include <dos.h>
get_ca(char *ch, char *scan)
/* Read a keystroke. ch=character code or zero if extended code
scan=extended code or scan code
*/
{
union REGS inregs;
inregs.h.ah=0;
int86(0x16,&inregs,&inregs);
*ch=inregs.h.al;
*scan=inregs.h.ah;
}