The fputc function writes a single character to the specified file and returns the character. Compiling with the __UNIX_PUTC macro defined enables an optimization that uses a faster, inlined version of this function. See also the fputc_unlocked function and the putc macro.