/* Demonstrates the getch() function. */ /* Non-ANSI listing */ #include #include main() { int ch; while ((ch = getch()) != '\r') putchar(ch); return 0; }