Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

putchar - Write a character to the standard output

&pagelevel(4)&pagelevel

Definition

#include <stdio.h>

int putchar(int c);

putchar writes the character c to the standard output.

Return val.

The written character c


if successful.

EOF

otherwise.

Notes

putchar is implemented both as a macro and as a function (see section “Functions and macros”).

The characters are not written immediately to the external file but are stored in an internal
C buffer (see section “Buffering” (Basic terms)).

For further information on output to text files and on converting the control characters for
white space (\n, \t, etc.) see section “White space” (Basic terms).

See also

putc, fputc, putwchar