OSDN Git Service

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