OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / ungetwc.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 http://www.UNIX-systems.org/online.html
12 .\"   ISO/IEC 9899:1999
13 .\"
14 .\"*******************************************************************
15 .\"
16 .\" This file was generated with po4a. Translate the source file.
17 .\"
18 .\"*******************************************************************
19 .TH UNGETWC 3 1999\-09\-19 GNU "Linux Programmer's Manual"
20 .SH 名前
21 ungetwc \- ワイド文字を FILE ストリームへ戻す
22 .SH 書式
23 .nf
24 \fB#include <wchar.h>\fP
25 .sp
26 \fBwint_t ungetwc(wint_t \fP\fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
27 .fi
28 .SH 説明
29 \fBungetwc\fP()  関数は \fBungetc\fP(3)  関数のワイド文字版である。 この関数はワイド文字を \fIstream\fP
30 へ戻して、それを返す。
31 .PP
32 \fIwc\fP が \fBWEOF\fP の場合、 \fBWEOF\fP を返す。 \fIwc\fP が不正なワイド文字の場合、 \fIerrno\fP に \fBEILSEQ\fP
33 を設定して \fBWEOF\fP を返す。
34 .PP
35 \fIwc\fP が有効なワイド文字の場合、それをストリームへと戻して後の
36 ワイド文字読み込み操作で取得できるようにする。ファイル位置(file\-position)
37 指示子は1以上戻される。ファイル終端(end\-of\-file)指示子はクリアされる。 そのファイルの背後にある記憶媒体は影響を受けない。
38 .PP
39 注意: \fIwc\fP はストリームから読み込んだ最後のワイド文字である必要はない。 有効なワイド文字ならば何でも良い。
40 .PP
41 続けて複数のワイド文字を戻すことをサポートしている実装の場合は、 戻したワイド文字は、戻したのとは逆の順番で読み込まれる。
42 しかしこの場合でも一段階の戻ししか保証されていない。
43 .SH 返り値
44 \fBungetwc\fP()  関数は成功した場合には \fIwc\fP を返す。 失敗した場合には \fBWEOF\fP を返す。
45 .SH 準拠
46 C99.
47 .SH 注意
48 \fBungetwc\fP()  関数の動作は現在のロケールの \fBLC_CTYPE\fP カテゴリに依存している。
49 .SH 関連項目
50 \fBfgetwc\fP(3)