home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug064.arc / SINGLEIO.C < prev    next >
Text File  |  1979-12-31  |  384b  |  16 lines

  1. #include "stdio.h"
  2.  
  3. main()
  4. {
  5. char c;
  6.  
  7.    printf("Enter any characters, terminate program with X\n");
  8.  
  9.    do {
  10.       c = getch();                     /* get a character */
  11.       putchar(c);                  /* display the hit key */
  12.    } while (c != 'X');
  13.  
  14.    printf("\nEnd of program.\n");
  15. }
  16.