putchar writes the ch character to stdout. On success, ch is returned. EOF is returned if an error occurred.