#define getchar(void) \
	fgetc(stdin) 

The macro getchar reads a character from stdin. Return values and error handling is identical to fgetc().