NAME | SYNOPSIS | DESCRIPTION | DIAGNOSTICS | ATTRIBUTES | SEE ALSO
#include <stdio.h>int putchar(int c);
The putchar(c) function writes the character c to the standard output channel, which is operating-system dependent. The effect of this operation outside of the program is operating-system defined. On systems where stdout has a meaning, putc(3STDC) is part of the C library, and putchar(c) is defined as putc(c, stdout).
Upon successful completion, this function returns the value it has written. If unsuccessful, it returns the constant EOF. This will occur if the output channel can no longer be written to; possible reasons for this are operating-system dependent.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | DIAGNOSTICS | ATTRIBUTES | SEE ALSO