| Types and objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <wchar.h> | ||
int fputws(constwchar_t*str,FILE*stream); | (since C95) (until C99) | |
int fputws(constwchar_t*restrict str,FILE*restrict stream); | (since C99) | |
Writes every character from the null-terminated wide stringstr to the output streamstream, as if by repeatedly executingfputwc.
The terminating null wide character fromstr is not written.
Contents |
| str | - | null-terminated wide string to be written |
| stream | - | output stream |
On success, returns a non-negative value
On failure, returnsEOF and sets theerror indicator (seeferror) onstream.
Output:
御休みなさい
| writes a character string to a file stream (function)[edit] | |
(C95)(C95)(C95)(C11)(C11)(C11)(C11) | prints formatted wide character output tostdout, a file stream or a buffer (function)[edit] |
fputws (C95) | writes a wide string to a file stream (function)[edit] |
(C95) | gets a wide string from a file stream (function)[edit] |
C++ documentation forfputws | |