7.19.7.9 The putchar function

Synopsis

1

#include <stdio.h>
int putchar(int c);

Description

2

The putchar function is equivalent to putc with the second argument stdout.

Returns

3

The putchar function returns the character written. If a write error occurs, the error indicator for the stream is set and putchar returns EOF.