2.12.5.8 putc

Declaration:

int putc(int char, FILE *stream);

Writes a character (an unsigned char) specified by the argument char to the specified stream and advances the position indicator for the stream.

This may be a macro version of fputc.

On success the character is returned. If an error occurs, the error indicator for the stream is set and EOF is returned.