putwc

Converts a wide character to its corresponding multibyte value, and writes the result to a specified file.

Format

#include  <wchar.h>

wint_t putwc  (wint_t wc, FILE *file_ptr);

Arguments

wc
An object of type wint_t.
file_ptr
A file pointer.

Description

Since putwc might be implemented as a macro, a file pointer argument with side effects (for example putwc (wc, *f++)) might be evaluated incorrectly. In such a case, use the fputwc function instead. See also fputwc in this section.

Return Values
x  The character written to the file. Indicates success. 
WEOF  Indicates an output error. The function sets errno. For a list of the errno values set by this function, see fputwc in this section. 


Previous Page | Next Page | Table of Contents | Index