1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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
15 .\" Modified Tue Oct 16 23:18:40 BST 2001 by John Levon <moz@compsoc.man.ac.uk>
17 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
18 .\" Translated Sun Aug 29 15:03:27 JST 1999
19 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
20 .\" Updated Sun Dec 26 JST 1999 by Kentaro Shirakata <argrath@ub32.org>
21 .\" Updated Fri Nov 2 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
23 .TH FGETWC 3 1999-07-25 "GNU" "Linux Programmer's Manual"
26 .\"O fgetwc, getwc \- read a wide character from a FILE stream
27 fgetwc, getwc \- ワイド文字を FILE ストリームから読み込む
35 .BI "wint_t fgetwc(FILE *" stream );
36 .BI "wint_t getwc(FILE *" stream );
42 .\"O function is the wide-character equivalent
46 .\"O It reads a wide character from \fIstream\fP and returns it.
47 .\"O If the end of stream is reached, or if \fIferror(stream)\fP becomes true,
50 .\"O If a wide character conversion error occurs, it sets
51 .\"O \fIerrno\fP to \fBEILSEQ\fP and returns
57 この関数は \fIstream\fP からワイド文字を 1 文字読み込み、これを返す。
58 ストリームの終端に達するか、\fIferror(stream)\fP が真になった場合には、
63 \fIerrno\fP に \fBEILSEQ\fP をセットし、
69 .\"O function or macro functions identically to
75 .\"O It may be implemented as a macro, and may evaluate its argument
77 .\"O There is no reason ever to use it.
78 この関数はマクロとして実装されるかもしれないので、引き数が複数回評価さ
79 れるかもしれない。この関数を使う理由はもはや存在しない。
81 .\"O For nonlocking counterparts, see
82 .\"O .BR unlocked_stdio (3).
84 .BR unlocked_stdio (3)
86 .\"O .SH "RETURN VALUE"
90 .\"O function returns the next wide-character
91 .\"O from the stream, or
94 関数はストリームの次のワイド文字か、あるいは
99 .\"O Apart from the usual ones, there is
100 通常のエラーに加えて、以下のエラーがある:
103 .\"O The data obtained from the input stream does not
104 .\"O form a valid character.
105 入力ストリームから取得したデータが、正しい文字でない。
106 .\"O .SH "CONFORMING TO"
122 .\"O In the absence of additional information passed to the
125 .\"O reasonable to expect that
127 .\"O will actually read a multibyte sequence
128 .\"O from the stream and then convert it to a wide character.
130 システムコールに渡す追加情報がない場合には、
133 にはマルチバイトシーケンスをストリームから読み込み、これをワイド文字に
140 .BR unlocked_stdio (3)