std::fputwc

From cppreference.com
< cpp‎ | io‎ | c
 
 
Input/output library
I/O manipulators
C-style I/O
Buffers
(deprecated in C++98)
Streams
Abstractions
File I/O
String I/O
Array I/O
(deprecated in C++98)
(deprecated in C++98)
(deprecated in C++98)
Synchronized Output
Types
Error category interface
(C++11)
 
 
Defined in header <cwchar>
wint_t fputwc( wchar_t ch, std::FILE* stream );
wint_t putwc( wchar_t ch, std::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

writes a character to a file stream
(function)
writes a wide string to a file stream
(function)
gets a wide character from a file stream
(function)