Outputs one character to the standard output file (stdout).
When a write error occurs, the error indicator for that file is set.
The putchar function outputs character c to the standard output file (stdout).
The putchar function normally returns c, the output character, but returns EOF when an error occurs.