◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ─────Run-Time Library─────────────────────────────────────────────────────── The getc routine reads a single character from the <stream> position and increments the associated file pointer (if there is one) to point to the next character. The getchar routine is identical to getc( stdin ). The getc and getchar routines are similar to fgetc and fgetchar, respectively, but are implemented both as macros and functions. Return Value The getc and getchar routines return the character read. A return value of EOF indicates an error or end-of-file condition. Use ferror or feof to determine whether an error or end-of-file occurred. -♦-