PutcPutcharPutwput character or word in a file
#include <stdio.h>
putcchar chFILE *fpputcharchar chputwint nFILE *fpDescription
Putc add the character "ch" to the file "fp" at the current
writing position and advances the position pointer.
Putchar is implemented as a macro (defined in the header file)
and is equivalent to "putc(ch,stdout)".
Putw adds the (two byte) machine word "n" to the file "fp" in
the manner of putc.
Output via putc is normally buffered except;
(a) when the buffering is disabled by "setbuf()", and
(b) the standard error output is always unbuffered.
Diagnostics
Putc and putchar return the character argument from a
successful call, and EOF on end-of-file or error.
See Also
fopen(),
fclose(), fflush(),
getc(),
puts(),
printf(),
fread()