1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification
14 .\" http://www.UNIX-systems.org/online.html
17 .\"*******************************************************************
19 .\" This file was generated with po4a. Translate the source file.
21 .\"*******************************************************************
22 .TH GETWCHAR 3 1999\-07\-25 GNU "Linux Programmer's Manual"
24 getwchar \- 標準入力よりワイド文字を読み込む
27 \fB#include <wchar.h>\fP
29 \fBwint_t getwchar(void);\fP
32 \fBgetwchar\fP() 関数は \fBgetchar\fP(3) 関数のワイド文字版である。 \fBstdin\fP からワイド文字を読み込んでそれを返す。
33 ストリームの最後に達している場合や \fIferror(stdin)\fP が真の場合には \fBWEOF\fP を返す。ワイド文字変換でエラーが起こった場合には
34 \fIerrno\fP に \fBEILSEQ\fP を設定して \fBWEOF\fP を返す。
36 これらの処理を停止せずに行いたいときは、 \fBunlocked_stdio\fP(3) を参照のこと。
38 \fBgetwchar\fP() 関数は標準入力の次のワイド文字を返すか、 \fBWEOF\fP を返す。
42 \fBgetwchar\fP() の動作は現在のロケールの \fBLC_CTYPE\fP カテゴリに依存している。
44 \fBgetwchar\fP() が実際には標準入力からマルチバイト列を読み込んで ワイド文字に変換することを期待しても良い。
46 \fBfgetwc\fP(3), \fBunlocked_stdio\fP(3)
48 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
49 である。プロジェクトの説明とバグ報告に関する情報は
50 http://www.kernel.org/doc/man\-pages/ に書かれている。