This is a File I/O function. It is not implemented in the Compiler.
#include <stdio.h>
int getchar(void);
getchar() is the same as getc() ( stdin). See fgetc() for more information.