Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->putchar()

Summary

#include <stdio.h>
    
int putchar(int c);Write a character to stdout

Parameter

    
cCharacter to be written

Description

This function writes the single character c to the output stream stdout.

putchar() is a macro defined as putc(c,stdout).


Return Value

The return value is the character written.  A return value of EOF (-1) indicates an error.  Since EOF is a legitimate integer value, ferror() should be called to verify that an error has occurred.