Namespaces
Variants
Views
Actions

std::fputwc

From cppreference.com
< cpp‎ | io‎ | c
Revision as of 19:13, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
Defined in header <cwchar>
wint_t fputwc( wchar_t ch, FILE *stream );
wint_t putwc( wchar_t ch, FILE *stream );

Writes a wide character ch to the given output stream stream. putwc() may be implemented as a macro and may evaluate stream more than once.

Parameters

ch - wide character to be written
stream - the output stream

Return value

ch on success, WEOF on failure. If an encoding error occurs, errno is set to EILSEQ.

See also

Template:cpp/io/c/dcl list fputcTemplate:cpp/io/c/dcl list fputwsTemplate:cpp/io/c/dcl list fgetwc
C documentation for fputwc