qc.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
────────────────────────────────────────────────────────────────────────────
 
     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 feof or ferror should
     be used to distinguish between an error or end-of-file condition.
                                    -♦-