COHERENT manpages

This page displays the COHERENT manpage for putchar() [Write a character onto the standard output].

List of available manpages
Index


putchar() -- STDIO Function (libc)

Write a character onto the standard output
#include <stdio.h>
int putchar(c)
char c;

putchar()  is  a  macro that  expands  to  putc(c,  stdout).   It writes  a
character onto the standard output.

Example

For an example of this routine, see the entry for getchar().

See Also

fputc(),
libc,
putc()
ANSI Standard, §7.9.7.9
POSIX Standard, §8.1

Diagnostics

putchar() returns EOF when a write error occurs.

Notes

Because putchar() is  a macro, arguments with side effects  may not work as
expected.