|18.104.22.168 The fputc function|
1 #include <stdio.h>
int fputc(int c, FILE *stream);
2 The fputc function writes the character specified by c (converted to an unsigned char) to the output stream pointed to by stream, at the position indicated by the associated file position indicator for the stream (if defined), and advances the indicator appropriately. If the file cannot support positioning requests, or if the stream was opened with append mode, the character is appended to the output stream.
3 The fputc function returns the character written. If a write error occurs, the error indicator for the stream is set and fputc returns EOF