The fgetc function returns the next character from the specified file. Compiling with the __UNIX_PUTC macro defined enables an optimization that uses a faster, inlined version of this function. See also the fgetc_unlocked function and the getc macro.