]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/fputws.3
capabilities.7: Add pivot_root(2) to CAP_SYS_ADMIN list
[thirdparty/man-pages.git] / man3 / fputws.3
CommitLineData
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.\"
9ba01802 16.TH FPUTWS 3 2019-03-06 "GNU" "Linux Programmer's Manual"
fea681da 17.SH NAME
d0f17b57 18fputws \- 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
26The
27.BR fputws ()
28function is the wide-character equivalent of
29the
30.BR fputs (3)
31function.
d0f17b57 32It writes the wide-character string starting at \fIws\fP, up to but
d1a71985 33not including the terminating null wide character (L\(aq\e0\(aq), to \fIstream\fP.
fea681da 34.PP
24b74457 35For a nonlocking counterpart, see
fea681da 36.BR unlocked_stdio (3).
47297adb 37.SH RETURN VALUE
60a90ecd
MK
38The
39.BR fputws ()
988db661 40function returns a
2fda57bd 41nonnegative integer if the operation was
fea681da 42successful, or \-1 to indicate an error.
938b70a1
MS
43.SH ATTRIBUTES
44For an explanation of the terms used in this section, see
45.BR attributes (7).
46.TS
47allbox;
48lb lb lb
49l l l.
50Interface Attribute Value
51T{
52.BR fputws ()
53T} Thread safety MT-Safe
54.TE
847e0d88 55.sp 1
47297adb 56.SH CONFORMING TO
9b661eb8 57POSIX.1-2001, POSIX.1-2008, C99.
fea681da 58.SH NOTES
d9bfdb9c 59The behavior of
60a90ecd 60.BR fputws ()
1274071a
MK
61depends on the
62.B LC_CTYPE
63category of the
fea681da
MK
64current locale.
65.PP
c13182ef 66In the absence of additional information passed to the
fb186734 67.BR fopen (3)
1e321034 68call, it is
60a90ecd
MK
69reasonable to expect that
70.BR fputws ()
71will actually write the multibyte
d0f17b57 72string corresponding to the wide-character string \fIws\fP.
47297adb 73.SH SEE ALSO
fea681da
MK
74.BR fputwc (3),
75.BR unlocked_stdio (3)