getchar - read character from standard input
Standard C Library (libc, -lc)
#include <stdio.h>
int
getchar(void);
getchar reads a single character from standard input. The character is converted to unsigned char before being returned. EOF, which is negative, is thus not a possible successful return value.
On success, getchar returns the character read. On error, or end of file, EOF is returned.
Any of the errors associated with read may occur.