Table of Contents
Previous topic Next topic
C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->putc()
Summary
#include <stdio.h>
int putc(int c, FILE* stream); Write a character to a given stream
Parameters
c | Character to be written |
stream | Pointer to FILE structure |
Description
This function writes the single character c to the output stream. stdout is the only output stream supported.
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.