1PUTWCHAR(3)                Linux Programmer's Manual               PUTWCHAR(3)
2
3
4

NAME

6       putwchar - write a wide character to standard output
7

SYNOPSIS

9       #include <wchar.h>
10
11       wint_t putwchar(wchar_t wc);
12

DESCRIPTION

14       The  putwchar()  function  is  the  wide-character  equivalent  of  the
15       putchar(3) function.  It writes the wide character wc  to  stdout.   If
16       ferror(stdout) becomes true, it returns WEOF.  If a wide character con‐
17       version error occurs, it sets errno to EILSEQ and returns WEOF.  Other‐
18       wise, it returns wc.
19
20       For a nonlocking counterpart, see unlocked_stdio(3).
21

RETURN VALUE

23       The putwchar() function returns wc if no error occurred, or WEOF to in‐
24       dicate an error.
25

ATTRIBUTES

27       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
28       tributes(7).
29
30       ┌────────────────────────────────────────────┬───────────────┬─────────┐
31Interface                                   Attribute     Value   
32       ├────────────────────────────────────────────┼───────────────┼─────────┤
33putwchar()                                  │ Thread safety │ MT-Safe │
34       └────────────────────────────────────────────┴───────────────┴─────────┘
35

CONFORMING TO

37       POSIX.1-2001, POSIX.1-2008, C99.
38

NOTES

40       The behavior of putwchar() depends on the LC_CTYPE category of the cur‐
41       rent locale.
42
43       It is reasonable to expect that  putwchar()  will  actually  write  the
44       multibyte sequence corresponding to the wide character wc.
45

SEE ALSO

47       fputwc(3), unlocked_stdio(3)
48

COLOPHON

50       This  page  is  part of release 5.13 of the Linux man-pages project.  A
51       description of the project, information about reporting bugs,  and  the
52       latest     version     of     this    page,    can    be    found    at
53       https://www.kernel.org/doc/man-pages/.
54
55
56
57GNU                               2021-03-22                       PUTWCHAR(3)
Impressum