OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / fgetwc.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
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.
7 .\"
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
13 .\"   ISO/IEC 9899:1999
14 .\"
15 .\" Modified Tue Oct 16 23:18:40 BST 2001 by John Levon <moz@compsoc.man.ac.uk>
16 .\"*******************************************************************
17 .\"
18 .\" This file was generated with po4a. Translate the source file.
19 .\"
20 .\"*******************************************************************
21 .TH FGETWC 3 1999\-07\-25 GNU "Linux Programmer's Manual"
22 .SH 名前
23 fgetwc, getwc \- ワイド文字を FILE ストリームから読み込む
24 .SH 書式
25 .nf
26 \fB#include <stdio.h>\fP
27 .br
28 \fB#include <wchar.h>\fP
29 .sp
30 \fBwint_t fgetwc(FILE *\fP\fIstream\fP\fB);\fP
31 \fBwint_t getwc(FILE *\fP\fIstream\fP\fB);\fP
32 .fi
33 .SH 説明
34 \fBfgetwc\fP()  関数は、 \fBfgetc\fP(3)  に対応するワイド文字関数である。 この関数は \fIstream\fP からワイド文字を 1
35 文字読み込み、これを返す。 ストリームの終端に達するか、\fIferror(stream)\fP が真になった場合には、 この関数は \fBWEOF\fP を返す。
36 ワイド文字変換でエラーが発生した場合は、 \fIerrno\fP に \fBEILSEQ\fP をセットし、 \fBWEOF\fP を返す。
37 .PP
38 \fBgetwc\fP()  関数あるいはマクロは、 \fBfgetwc\fP()  と全く同じ動作をする。
39 この関数はマクロとして実装されるかもしれないので、引き数が複数回評価さ れるかもしれない。この関数を使う理由はもはや存在しない。
40 .PP
41 これらの処理を停止せずに行いたいときは、 \fBunlocked_stdio\fP(3)  を参照のこと。
42 .SH 返り値
43 \fBfgetwc\fP()  関数はストリームの次のワイド文字か、あるいは \fBWEOF\fP を返す。
44 .SH エラー
45 通常のエラーに加えて、以下のエラーがある:
46 .TP 
47 \fBEILSEQ\fP
48 入力ストリームから取得したデータが、正しい文字でない。
49 .SH 準拠
50 C99, POSIX.1\-2001.
51 .SH 注意
52 \fBfgetwc\fP()  の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
53 .PP
54 \fBfopen\fP(3)  システムコールに渡す追加情報がない場合には、 \fBfgetwc\fP()  が実際
55 にはマルチバイトシーケンスをストリームから読み込み、これをワイド文字に 変換すると期待することは適切である。
56 .SH 関連項目
57 \fBfgetws\fP(3), \fBfputwc\fP(3), \fBungetwc\fP(3), \fBunlocked_stdio\fP(3)