OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / fgetws.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 FGETWS 3 2011\-09\-28 GNU "Linux Programmer's Manual"
22 .SH 名前
23 fgetws \- ワイド文字の文字列を FILE ストリームから読み込む
24 .SH 書式
25 .nf
26 \fB#include <wchar.h>\fP
27 .sp
28 \fBwchar_t *fgetws(wchar_t *\fP\fIws\fP\fB, int \fP\fIn\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
29 .fi
30 .SH 説明
31 \fBfgetws\fP()  関数は \fBfgets\fP(3)  に対応するワイド文字関数である。 この関数は、最大 \fIn\-1\fP 文字のワイド文字を
32 \fIws\fP が示すワイド文字の配列に読み込み、 終端の NULL ワイド文字 (L\(aq\e0\(aq) を追加する。
33 この関数は、ワイド文字の改行文字を見つけ、これを格納すると読み込むのを止める。 この関数はストリームの終わりに達した場合も読み込みを止める。
34 .PP
35 プログラマは、\fIws\fP には少なくとも \fIn\fP 文字のワイド文字を 格納できる領域を必ず確保していなければならない。
36 .PP
37 これらの処理を停止せずに行いたいときは、 \fBunlocked_stdio\fP(3) を参照のこと。
38 .SH 返り値
39 \fBfgetws\fP()  は成功すると \fIws\fP を返す。 既にストリームの終わりに達しているか、エラーが起きた場合には NULL を返す。
40 .SH 準拠
41 C99, POSIX.1\-2001.
42 .SH 注意
43 \fBfgetws\fP()  の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
44 .PP
45 \fBfopen\fP(3)  システムコールに渡す追加の情報がない場合には、 \fBfgetws\fP()
46 が実際にはマルチバイトシーケンスをストリームから読み込み、 これをワイド文字に変換すると期待することは適切である。
47 .PP
48 この関数は信頼できない。なぜなら、入力に含まれるかもしれない ナルワイド文字を適切に処理することができないからである。
49 .SH 関連項目
50 \fBfgetwc\fP(3), \fBunlocked_stdio\fP(3)