c/io/fputc

Writes a character to the given output stream. may be implemented as a macro and evaluate more than once, so the corresponding argument should never be an expression with side effects.

Internally, the character is converted to just before being written.

Return value
On success, returns the written character.

On failure, returns eof and sets the error indicator (see ferror) on.