2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\" References consulted:
7 .\" GNU glibc-2 source code and manual
8 .\" Dinkumware C library reference http://www.dinkumware.com/
9 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
12 .TH fputwc 3 (date) "Linux man-pages (unreleased)"
14 fputwc, putwc \- write a wide character to a FILE stream
17 .RI ( libc ", " \-lc )
23 .BI "wint_t fputwc(wchar_t " wc ", FILE *" stream );
24 .BI "wint_t putwc(wchar_t " wc ", FILE *" stream );
29 function is the wide-character
33 It writes the wide character \fIwc\fP to \fIstream\fP.
35 \fIferror(stream)\fP becomes true, it returns
37 If a wide-character conversion error occurs,
38 it sets \fIerrno\fP to \fBEILSEQ\fP and returns
40 Otherwise, it returns \fIwc\fP.
44 function or macro functions identically to
46 It may be implemented as a macro, and may evaluate its argument
48 There is no reason ever to use it.
50 For nonlocking counterparts, see
51 .BR unlocked_stdio (3).
61 is set to indicate the error.
63 Apart from the usual ones, there is
66 Conversion of \fIwc\fP to the stream's encoding fails.
68 For an explanation of the terms used in this section, see
74 Interface Attribute Value
80 T} Thread safety MT-Safe
94 In the absence of additional information passed to the
97 reasonable to expect that
99 will actually write the multibyte
100 sequence corresponding to the wide character \fIwc\fP.
104 .BR unlocked_stdio (3)