Namespaces
Variants
Views
Actions

fputc, putc

From cppreference.com
< c‎ | io
Revision as of 21:36, 31 May 2013 by P12bot (Talk | contribs)

Defined in header <stdio.h>
int fputc( int ch, FILE *stream );
int putc( int ch, FILE *stream );

Writes a character ch to the given output stream stream. putc() function may be implemented as a macro.

Parameters

ch - character to be written
stream - the output stream

Return value

ch on success, EOF on failure.

See also

writes a character to stdout
(function) [edit]
C++ documentation for fputc, putc