2.12.5.5 getc
Declaration:
int getc(FILE *
stream);
Gets the next character (an unsigned char
) from the specified stream and advances the position indicator for the stream.
This may be a macro version of fgetc
.
On success the character is returned. If the end-of-file is encountered, then EOF
is returned and the end-of-file indicator is set. If an error occurs then the error indicator for the stream is set and EOF
is returned.