You are on page 1of 1

#include<stdio.

h>
#include<dos.h>
getkey()
{union REGS i,o;
while(!kbhit())
;
i.h.ah=0;
int86(22,&i,&o);
return (o.h.ah);;
}
void main()
{ int i,k;
clrscr();
k=getkey();
printf("%d",k);
getch();
}

You might also like