Description
The
fgetc function obtains the next character (if
present) as an
unsigned char converted to an int, from the
input stream pointed to by stream, and advances the associated
file position indicator for the stream (if defined).
Returns
The
fgetc function returns the next character from
the input stream pointed to by stream. If the stream is at
end-of-file, the end-of-file indicator for the stream is
set and
fgetc returns EOF. If a read error occurs, the
error indicator for the stream is set and fgetc returns
EOF.
Implementation Notes
The value of stream must be stdin.
|