]> pd.if.org Git - pd_readline/blob - testkey.c
More progress.
[pd_readline] / testkey.c
1
2
3 /*  testkey.c  */ 
4
5 /*  Prints the keycode for a given key */  
6
7
8
9 #include <stdio.h> 
10 #include <stdlib.h> 
11
12
13
14 int main (void) 
15 {
16
17 int c; 
18
19 while( (c == getchar() ) ) 
20 {
21    printf("%d 0x%02X\n", c );
22
23
24 return 0; 
25
26 }