This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/getche.c

12 lines
166 B
C

#include <stdio.h>
#include <conio.h>
void main()
{
int c;
printf( "Press any key\n" );
c = getche();
printf( "You pressed %c(%d)\n", c, c );
}