◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ─────Run-Time Library─────────────────────────────────────────────────────── The fgetc function reads a single character from the current position of the file associated with <stream>. The character is converted and returned as an int. The function then increments the associated file pointer (if any) to point to the next character. The _fgetchar function is equivalent to fgetc( stdin ). The fgetc and _fgetchar routines are identical to getc and getchar, but are functions rather than macros. Return Value The fgetc and _fgetchar functions return the character read. They return EOF to indicate an error or end-of-file. However, the EOF value is also a legitimate integer value, so use feof or ferror to distinguish between an error or end-of-file condition. -♦-