Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/io/c/fputc"

From cppreference.com
< cpp‎ | io‎ | c
m (Text replace - "{{returns}}" to "===Return value===")
m (Text replace - "{{params}}" to "===Parameters===")
Line 7: Line 7:
 
Writes a character {{tt|ch}} to the given output stream {{tt|stream}}. {{cpp|putc()}} function may be implemented as a macro.  
 
Writes a character {{tt|ch}} to the given output stream {{tt|stream}}. {{cpp|putc()}} function may be implemented as a macro.  
 
<!-- ======== -->
 
<!-- ======== -->
{{params}}
+
===Parameters===
 
{{param list begin}}
 
{{param list begin}}
 
{{param list item | ch | character to be written}}
 
{{param list item | ch | character to be written}}

Revision as of 17:36, 2 August 2011

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. Template:cpp function may be implemented as a macro.

Parameters

ch - character to be written
stream - the output stream

Return value

ch on success, Template:cpp on failure.

Template:see also

Template:cpp/io/c/dcl list putchar