Syntax | #include <stdio.h> int fgetc(FILE *stream); | |||||
Description | Description
| |||||
Return val. | Next byte from the input stream pointed to by stream | |||||
upon successful completion. | ||||||
|
| if the stream is at end-of-file. The end-of-file indicator for the stream is set. if a read error occurs. The error indicator for the stream is set, and | ||||
Errors |
| |||||
|
| The | ||||
|
| The file descriptor underlying stream is not a valid file descriptor open for reading. | ||||
|
| The read operation was terminated due to the receipt of a signal, and no data was transferred. | ||||
|
| A physical I/O error has occurred, or the process is in a background process group attempting to read from its controlling terminal, and either the process is ignoring or blocking the | ||||
Notes | If the integer value returned by The If a comparison such as:
is used in a program, the variable c must always be declared as an If
BS2000
The following applies in the case of text files with SAM access mode and variable record length for which a maximum record length is also specified: When the specification The program environment determines whether | |||||
See also |
|