1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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
14 .\" Japanese Version Copyright (c) 1999 HANATAKA Shinya
15 .\" all rights reserved.
16 .\" Translated Tue Jan 11 00:55:43 JST 2000
17 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
19 .TH UNGETWC 3 1999-09-19 "GNU" "Linux Programmer's Manual"
22 .\"O ungetwc \- push back a wide character onto a FILE stream
23 ungetwc \- ワイド文字を FILE ストリームへ戻す
29 .BI "wint_t ungetwc(wint_t " wc ", FILE *" stream );
33 .\"O The \fBungetwc\fP() function is the wide-character equivalent of the
36 .\"O It pushes back a wide character onto \fIstream\fP and returns it.
41 この関数はワイド文字を \fIstream\fP へ戻して、それを返す。
43 .\"O If \fIwc\fP is \fBWEOF\fP, it returns \fBWEOF\fP.
44 .\"O If \fIwc\fP is an invalid wide character,
45 .\"O it sets \fIerrno\fP to \fBEILSEQ\fP and returns \fBWEOF\fP.
46 \fIwc\fP が \fBWEOF\fP の場合、 \fBWEOF\fP を返す。
47 \fIwc\fP が不正なワイド文字の場合、
48 \fIerrno\fP に \fBEILSEQ\fP を設定して \fBWEOF\fP を返す。
50 .\"O If \fIwc\fP is a valid wide character, it is pushed back onto the stream
51 .\"O and thus becomes available for future wide character read operations.
52 .\"O The file-position indicator is decremented by one or more.
54 .\"O indicator is cleared.
55 .\"O The backing storage of the file is not affected.
56 \fIwc\fP が有効なワイド文字の場合、それをストリームへと戻して後の
57 ワイド文字読み込み操作で取得できるようにする。ファイル位置(file-position)
58 指示子は1以上戻される。ファイル終端(end-of-file)指示子はクリアされる。
59 そのファイルの背後にある記憶媒体は影響を受けない。
61 .\"O Note: \fIwc\fP need not be the last wide-character read from the stream;
62 .\"O it can be any other valid wide character.
63 注意: \fIwc\fP はストリームから読み込んだ最後のワイド文字である必要はない。
66 .\"O If the implementation supports multiple push-back operations in a row, the
67 .\"O pushed-back wide characters will be read in reverse order; however, only one
68 .\"O level of push-back is guaranteed.
69 続けて複数のワイド文字を戻すことをサポートしている実装の場合は、
70 戻したワイド文字は、戻したのとは逆の順番で読み込まれる。
71 しかしこの場合でも一段階の戻ししか保証されていない。
72 .\"O .SH "RETURN VALUE"
76 .\"O function returns \fIwc\fP when successful, or \fBWEOF\fP upon
79 関数は成功した場合には \fIwc\fP を返す。
80 失敗した場合には \fBWEOF\fP を返す。
81 .\"O .SH "CONFORMING TO"