Function version of fgetc.
fgetc is usually equal to getc, except fgetc is implemented as a function, but getc is implemented as a macro.