]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
89e3ffe9 | 3 | .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA) |
fea681da MK |
4 | .\" This is free documentation; you can redistribute it and/or |
5 | .\" modify it under the terms of the GNU General Public License as | |
6 | .\" published by the Free Software Foundation; either version 2 of | |
7 | .\" the License, or (at your option) any later version. | |
fe382ebf | 8 | .\" %%%LICENSE_END |
fea681da MK |
9 | .\" |
10 | .\" References consulted: | |
11 | .\" GNU glibc-2 source code and manual | |
12 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 13 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
14 | .\" ISO/IEC 9899:1999 |
15 | .\" | |
4b8c67d9 | 16 | .TH FPUTWS 3 2017-09-15 "GNU" "Linux Programmer's Manual" |
fea681da | 17 | .SH NAME |
d0f17b57 | 18 | fputws \- write a wide-character string to a FILE stream |
fea681da MK |
19 | .SH SYNOPSIS |
20 | .nf | |
21 | .B #include <wchar.h> | |
68e4db0a | 22 | .PP |
fea681da MK |
23 | .BI "int fputws(const wchar_t *" ws ", FILE *" stream ); |
24 | .fi | |
25 | .SH DESCRIPTION | |
60a90ecd MK |
26 | The |
27 | .BR fputws () | |
28 | function is the wide-character equivalent of | |
29 | the | |
30 | .BR fputs (3) | |
31 | function. | |
d0f17b57 | 32 | It writes the wide-character string starting at \fIws\fP, up to but |
e9c23bc6 | 33 | not including the terminating null wide character (L\(aq\\0\(aq), to \fIstream\fP. |
fea681da | 34 | .PP |
24b74457 | 35 | For a nonlocking counterpart, see |
fea681da | 36 | .BR unlocked_stdio (3). |
47297adb | 37 | .SH RETURN VALUE |
60a90ecd MK |
38 | The |
39 | .BR fputws () | |
988db661 | 40 | function returns a |
2fda57bd | 41 | nonnegative integer if the operation was |
fea681da | 42 | successful, or \-1 to indicate an error. |
938b70a1 MS |
43 | .SH ATTRIBUTES |
44 | For an explanation of the terms used in this section, see | |
45 | .BR attributes (7). | |
46 | .TS | |
47 | allbox; | |
48 | lb lb lb | |
49 | l l l. | |
50 | Interface Attribute Value | |
51 | T{ | |
52 | .BR fputws () | |
53 | T} Thread safety MT-Safe | |
54 | .TE | |
847e0d88 | 55 | .sp 1 |
47297adb | 56 | .SH CONFORMING TO |
9b661eb8 | 57 | POSIX.1-2001, POSIX.1-2008, C99. |
fea681da | 58 | .SH NOTES |
d9bfdb9c | 59 | The behavior of |
60a90ecd | 60 | .BR fputws () |
1274071a MK |
61 | depends on the |
62 | .B LC_CTYPE | |
63 | category of the | |
fea681da MK |
64 | current locale. |
65 | .PP | |
c13182ef | 66 | In the absence of additional information passed to the |
fb186734 | 67 | .BR fopen (3) |
1e321034 | 68 | call, it is |
60a90ecd MK |
69 | reasonable to expect that |
70 | .BR fputws () | |
71 | will actually write the multibyte | |
d0f17b57 | 72 | string corresponding to the wide-character string \fIws\fP. |
47297adb | 73 | .SH SEE ALSO |
fea681da MK |
74 | .BR fputwc (3), |
75 | .BR unlocked_stdio (3) |