Head file for getch.c. Get a character from the stdin, put it into a buffer (which has a size of BUFSIZE).
  • getch gets a character out of the buffer (if stdin is finished, an EOF is returned).
  • fgetch replaces stdin by a file.
  • ungetch puts back a character into the buffer.

  • #define BUFSIZE 100
    
    int getch(void);
    int fgetch(FILE *);
    void ungetch(int);
    

    Created: Nov 26, 1994
    Last Revised: Dec 6, 1994
    © Copyright 1994 Wei-Chang Shann

    shann@math.ncu.edu.tw