Namespaces
Variants
Views
Actions

fputc, putc

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

 
 
File input/output


Functions
File access
Direct input/output
Unformatted input/output
fputc
(until C11)(since C11)
(C95)(C95)
(C95)
(C95)(C95)
(C95)
(C95)
Formatted input
Formatted output
File positioning
Error handling
Operations on files
 
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