UC3M

Telematic/Audiovisual Syst./Communication Syst. Engineering

Systems Architecture

September 2017 - January 2018

8.2.3.  The putc function

The putc function prints out a character on the specified file stream.

#include <stdio.h>
int putc(int c, FILE *stream);

Here c is the character to be written, stored as an integer. The second argument is the file where the character is going to be printed. If an error occurs, putc returns EOF; otherwise, the function returns the written character.