source: trunk/synergy/birdhacks/getkey.c@ 2767

Last change on this file since 2767 was 2767, checked in by bird, 19 years ago

Some more hacks.

File size: 603 bytes
Line 
1/* $Id: $ */
2/** @file
3 *
4 * getkey - reads from standard in and prints what we get.
5 *
6 * Copyright (c) 1997-2006 knut st. osmundsen <bird@anduin.net>
7 *
8 * GPL
9 *
10 */
11
12/*******************************************************************************
13* Header Files *
14*******************************************************************************/
15#include <stdio.h>
16
17int main()
18{
19 for (;;) {
20 char ch;
21 int cch = read(0, &ch, 1);
22 printf("ch=%02x (%03d) cch=%d\n", ch, ch, cch);
23 }
24}
25
Note: See TracBrowser for help on using the repository browser.