Table of Contents
Previous topic Next topic
C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->putchar()
|int putchar(int c);||Write a character to stdout|
This function writes the single character c to the output stream stdout.
putchar() is a macro defined as putc(c,stdout).
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.