Writes a character to the output stream.
#include <stdio.h> int fputc ( int c, FILE *fp);
(IN) Specifies the character to be written.
(IN) Points to the output stream.
If successful, returns the character written. If a write error occurs, returns EOF, sets the error indicator for the stream, and sets errno to one of the following:
The fputc function writes the byte specified by c (converted to an unsigned char) to the output stream pointed to by fp.