]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/putwchar.3
fmtmsg.3, gethostbyname.3, termios.3: Global fix: s/Unixware/UnixWare/
[thirdparty/man-pages.git] / man3 / putwchar.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
3.\" This is free documentation; you can redistribute it and/or
4.\" modify it under the terms of the GNU General Public License as
5.\" published by the Free Software Foundation; either version 2 of
6.\" the License, or (at your option) any later version.
7.\"
8.\" References consulted:
9.\" GNU glibc-2 source code and manual
10.\" Dinkumware C library reference http://www.dinkumware.com/
11.\" OpenGroup's Single Unix specification
12.\" http://www.UNIX-systems.org/online.html
13.\" ISO/IEC 9899:1999
14.\"
15.TH PUTWCHAR 3 1999-07-25 "GNU" "Linux Programmer's Manual"
16.SH NAME
17putwchar \- write a wide character to standard output
18.SH SYNOPSIS
19.nf
20.B #include <wchar.h>
21.sp
22.BI "wint_t putwchar(wchar_t " wc );
23.fi
24.SH DESCRIPTION
60a90ecd
MK
25The
26.BR putwchar ()
27function is the wide-character equivalent of the
28.BR putchar (3)
29function.
9bef72b5 30It writes the wide character \fIwc\fP to \fIstdout\fP.
cab87712
MK
31If \fIferror(stdout)\fP becomes true, it returns
32.BR WEOF .
c13182ef 33If a wide character
cab87712
MK
34conversion error occurs, it sets \fIerrno\fP to \fBEILSEQ\fP and returns
35.BR WEOF .
fea681da
MK
36Otherwise it returns \fIwc\fP.
37.PP
24b74457 38For a nonlocking counterpart, see
fea681da
MK
39.BR unlocked_stdio (3).
40.SH "RETURN VALUE"
60a90ecd
MK
41The
42.BR putwchar ()
cab87712
MK
43function returns \fIwc\fP if no error occurred, or
44.B WEOF
45to indicate an error.
fea681da 46.SH "CONFORMING TO"
68e1685c 47C99.
fea681da 48.SH NOTES
d9bfdb9c 49The behavior of
60a90ecd 50.BR putwchar ()
1274071a
MK
51depends on the
52.B LC_CTYPE
53category of the
fea681da
MK
54current locale.
55.PP
60a90ecd
MK
56It is reasonable to expect that
57.BR putwchar ()
58will actually write
fea681da
MK
59the multibyte sequence corresponding to the wide character \fIwc\fP.
60.SH "SEE ALSO"
61.BR fputwc (3),
62.BR unlocked_stdio (3)