1FPUTWS(3) Linux Programmer's Manual FPUTWS(3)
2
3
4
6 fputws - write a wide-character string to a FILE stream
7
9 #include <wchar.h>
10
11 int fputws(const wchar_t *ws, FILE *stream);
12
14 The fputws() function is the wide-character equivalent of the fputs(3)
15 function. It writes the wide-character string starting at ws, up to
16 but not including the terminating L'\0' character, to stream.
17
18 For a nonlocking counterpart, see unlocked_stdio(3).
19
21 The fputws() function returns a nonnegative integer if the operation
22 was successful, or -1 to indicate an error.
23
25 C99, POSIX.1-2001.
26
28 The behavior of fputws() depends on the LC_CTYPE category of the cur‐
29 rent locale.
30
31 In the absence of additional information passed to the fopen(3) call,
32 it is reasonable to expect that fputws() will actually write the multi‐
33 byte string corresponding to the wide-character string ws.
34
36 fputwc(3), unlocked_stdio(3)
37
39 This page is part of release 3.25 of the Linux man-pages project. A
40 description of the project, and information about reporting bugs, can
41 be found at http://www.kernel.org/doc/man-pages/.
42
43
44
45GNU 1999-07-25 FPUTWS(3)