/* testkey.c */ /* Prints the keycode for a given key */ #include #include int main (void) { int c; while( (c == getchar() ) ) { printf("%d 0x%02X\n", c ); } return 0; }