]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/putwchar.3
Formatting fixes
[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
e511ffb6 25The \fBputwchar\fP() function is the wide-character equivalent of the
3382bd94 26\fBputchar\fP() function. It writes the wide character \fIwc\fP to \fBstdout\fP.
fea681da 27If \fIferror(stdout)\fP becomes true, it returns WEOF. If a wide character
dcec8eb5 28conversion error occurs, it sets \fIerrno\fP to \fBEILSEQ\fP and returns WEOF.
fea681da
MK
29Otherwise it returns \fIwc\fP.
30.PP
31For a non-locking counterpart, see
32.BR unlocked_stdio (3).
33.SH "RETURN VALUE"
e511ffb6 34The \fBputwchar\fP() function returns \fIwc\fP if no error occurred, or WEOF to
fea681da
MK
35indicate an error.
36.SH "CONFORMING TO"
37ISO/ANSI C, UNIX98
38.SH NOTES
e511ffb6 39The behaviour of \fBputwchar\fP() depends on the LC_CTYPE category of the
fea681da
MK
40current locale.
41.PP
e511ffb6 42It is reasonable to expect that \fBputwchar\fP() will actually write
fea681da
MK
43the multibyte sequence corresponding to the wide character \fIwc\fP.
44.SH "SEE ALSO"
45.BR fputwc (3),
46.BR unlocked_stdio (3)