Synopsis
#include <stdio.h>
int getchar(void);
Description

getchar reads a single character from the standard input stream.

If the stream is at end-of-file or a read error occurs, getc returns EOF.

Portability

getchar conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).