cpp/io/c/fputc

Writes a character to the given output stream.

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

In C, c/io/fputc may be implemented as a macro, which is disallowed in C++. Therefore, calls to and  always have the same effect.

Return value
On success, returns the written character.

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