2.12.5.6 getchar
Declaration:
int getchar(void);
Gets a character (an unsigned char
) from stdin
.
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.