HP C/iX Library Reference Manual (30026-90004)

280 Chapter5
HP C/iX Library Function Descriptions
putchar
putchar
Writes a character to the standard output stream stdout.
Syntax
#include <stdio.h>
int putchar (int
c
);
Parameters
c
A character to be written to stdout.
Return Values
x The character written to stdout.
EOF An error occurred; errno is set to indicate the error condition.
Description
The putchar function writes a single character
c
to the standard output stream stdout.
The putchar(
c
) function is equivalent to putc(
c
,
stdout_ptr
).
Examples
Refer to the examples located in the getchar function description.
See Also
fputc(), putc(), puts(), fwrite(), getchar(), ANSI C 4.9.7.9, POSIX.1 8.1