#include #include /* * showchars.c -- a simple program to display input chars */ int main() { char c; while( read(0, &c, 1) == 1 ) // fd 0 is standard in (often kbd) if ( c > ' ' && c < 127 ) printf("char is '%c'\n", c); else printf("char code is %d\n", c); return 0; }