.\" Copyright (c) 1990 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" %sccs.include.redist.man%
.\" @(#)putc.3 6.4 (Berkeley) %G%
fputc, putc, putchar, putw \- put a character or word to a stream
fputc(int c, FILE *stream);
putc(int c, FILE *stream);
putw(int w, FILE *stream);
(converted to an ``unsigned char'')
acts essentially identically to
but is a macro that expands in-line.
These functions return the integer constant
or if an attempt is made to write a read-only stream.
the other functions return the character printed.
ferror(3), fopen(3), getc(3), stdio(3)
The size and byte order of an
varies from one machine to another, and
is not recommended for portable applications.
Because it is implemented as a macro,
argument with side effects incorrectly.
In particular, ``putc(c, *f++);'' may not work sensibly
(although ``putc(*cp++, f);''