home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
dos
/
io
/
ctrlc.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-10-09
|
245 b
|
16 lines
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <pc.h>
#include <dos.h>
int
main(void)
{
int key;
setmode(fileno(stdin), O_BINARY);
while ((key=getkey()) != 'q')
printf("key is %d\n", key);
return 0;
}