Namespaces
Variants
Views
Actions

fputwc

From cppreference.com
< c‎ | io
Revision as of 16:00, 23 October 2013 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Defined in header <wchar.h>
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.

Contents

[edit] Parameters

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

[edit] Return value

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

[edit] Example

[edit] See also

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