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 .\" Modified Tue Oct 16 23:18:40 BST 2001 by John Levon <moz@compsoc.man.ac.uk>
18 .\"*******************************************************************
20 .\" This file was generated with po4a. Translate the source file.
22 .\"*******************************************************************
23 .TH FGETWC 3 2013\-04\-19 GNU "Linux Programmer's Manual"
25 fgetwc, getwc \- ワイド文字を FILE ストリームから読み込む
28 \fB#include <stdio.h>\fP
30 \fB#include <wchar.h>\fP
32 \fBwint_t fgetwc(FILE *\fP\fIstream\fP\fB);\fP
33 \fBwint_t getwc(FILE *\fP\fIstream\fP\fB);\fP
36 \fBfgetwc\fP() 関数は、 \fBfgetc\fP(3) に対応するワイド文字関数である。 この関数は \fIstream\fP からワイド文字を 1
37 文字読み込み、これを返す。 ストリームの終端に達するか、\fIferror(stream)\fP が真になった場合には、 この関数は \fBWEOF\fP を返す。
38 ワイド文字変換でエラーが発生した場合は、 \fIerrno\fP に \fBEILSEQ\fP をセットし、 \fBWEOF\fP を返す。
40 \fBgetwc\fP() 関数あるいはマクロは、 \fBfgetwc\fP() と全く同じ動作をする。
41 この関数はマクロとして実装されるかもしれないので、引き数が複数回評価さ れるかもしれない。この関数を使う理由はもはや存在しない。
43 これらの処理を停止せずに行いたいときは、 \fBunlocked_stdio\fP(3) を参照のこと。
45 The \fBfgetwc\fP() function returns the next wide\-character from the stream,
46 or \fBWEOF\fP. In the event of an error, \fIerrno\fP is set to indicate the
52 入力ストリームから取得したデータが、正しい文字でない。
56 \fBfgetwc\fP() の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
58 \fBfopen\fP(3) システムコールに渡す追加情報がない場合には、 \fBfgetwc\fP() が実際
59 にはマルチバイトシーケンスをストリームから読み込み、これをワイド文字に 変換すると期待することは適切である。
61 \fBfgetws\fP(3), \fBfputwc\fP(3), \fBungetwc\fP(3), \fBunlocked_stdio\fP(3)
63 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
64 である。プロジェクトの説明とバグ報告に関する情報は
65 http://www.kernel.org/doc/man\-pages/ に書かれている。