Returns a character from the stdin stream.
#include <stdio.h> int getchar ( void );
If successful, returns the next byte from the input stream pointed to by stdin. If the stream is at end-of-file, getchar sets the EOF indicator and returns EOF. If a read error occurs, getchar sets the error indicator, returns EOF, and sets errno to one of the following: