putwcharのヘルプ・マニュアル
日本語 英語
putwchar --help
man putwchar
PUTWCHAR(3) Linux Programmer’s Manual PUTWCHAR(3)
名前
putwchar - ワイド文字を標準出力へ書き出す
書式
#include
wint_t putwchar(wchar_t wc);
説明
putwchar() 関数は putchar() のワイド文字版である。この関数は wc を std-
out へと書き出す。ferror(stdout) が真ならば WEOF を返す。ワイド文字の変
換に失敗した場合には errno に EILSEQ を設定して WEOF を返す。それ以外の
場合は wc を返す。
これらの処理をロックせずに行いたいときは、 unlocked_stdio(3) を参照のこ
と。
返り値
エ ラーが起きなかった場合、 putwchar() 関数は wc を返す。エラーが起きた
場合は WEOF を返す。
準拠
C99.
注意
putwchar() の動作は現在のロケールの LC_CTYPE カテゴリに依存している。
putwchar() が実際にはワイド文字 wc と等価なマルチバイト文字を書き出すこ
とを期待してもよい。
関連項目
fputwc(3), unlocked_stdio(3)
GNU 1999-07-25 PUTWCHAR(3)
PUTWCHAR(3) Linux Programmer’s Manual PUTWCHAR(3)
NAME
putwchar - write a wide character to standard output
SYNOPSIS
#include
wint_t putwchar(wchar_t wc);
DESCRIPTION
The putwchar() function is the wide-character equivalent of the
putchar(3) function. It writes the wide character wc to stdout. If
ferror(stdout) becomes true, it returns WEOF. If a wide character con-
version error occurs, it sets errno to EILSEQ and returns WEOF. Other-
wise it returns wc.
For a non-locking counterpart, see unlocked_stdio(3).
RETURN VALUE
The putwchar() function returns wc if no error occurred, or WEOF to
indicate an error.
CONFORMING TO
C99.
NOTES
The behavior of putwchar() depends on the LC_CTYPE category of the cur-
rent locale.
It is reasonable to expect that putwchar() will actually write the
multibyte sequence corresponding to the wide character wc.
SEE ALSO
fputwc(3), unlocked_stdio(3)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1999-07-25 PUTWCHAR(3)