Outputs one character to a stream input/output file.
long fputc (long c, FILE *fp);
When a write error occurs, the error indicator for that file is set.
The fputc function outputs character c to the stream input/output file indicated by file pointer fp.
The fputc function normally returns c, the output character, but returns EOF when an error occurs.