Table of Contents
Previous topic Next topic
COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->putchar()
Summary
#include <stdio.h>
int putchar(int c); | Write a character to stdout |
Parameter
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.