C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
fgetc, _fgetchar
 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.
                                    -♦-