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 .TH UNGETWC 3 1999-09-19 "GNU" "Linux Programmer's Manual"
16 ungetwc \- push back a wide character onto a FILE stream
21 .BI "wint_t ungetwc(wint_t " wc ", FILE *" stream );
26 function is the wide-character equivalent of the
29 It pushes back a wide character onto \fIstream\fP and returns it.
31 If \fIwc\fP is WEOF, it returns WEOF.
32 If \fIwc\fP is an invalid wide character,
33 it sets \fIerrno\fP to \fBEILSEQ\fP and returns WEOF.
35 If \fIwc\fP is a valid wide character, it is pushed back onto the stream
36 and thus becomes available for future wide-character read operations.
37 The file-position indicator is decremented by one or more.
40 The backing storage of the file is not affected.
42 Note: \fIwc\fP need not be the last wide-character read from the stream;
43 it can be any other valid wide character.
45 If the implementation supports multiple push-back operations in a row, the
46 pushed-back wide characters will be read in reverse order; however, only one
47 level of push-back is guaranteed.
51 function returns \fIwc\fP when successful, or WEOF upon
58 depends on the LC_CTYPE category of the