Namespaces
Variants
Views
Actions

std::fputc, std::putc

From cppreference.com
< cpp‎ | io‎ | c
Revision as of 08:27, 14 May 2012 by P12 (Talk | contribs)

Template:cpp/io/c/sidebar

Defined in header <cstdio>
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

Template:cpp/io/c/dcl list putchar
C documentation for fputc, putc