1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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 http://www.UNIX-systems.org/online.html
16 .TH UNGETWC 3 2021-03-22 "GNU" "Linux Programmer's Manual"
18 ungetwc \- push back a wide character onto a FILE stream
23 .BI "wint_t ungetwc(wint_t " wc ", FILE *" stream );
28 function is the wide-character equivalent of the
31 It pushes back a wide character onto
43 is an invalid wide character,
53 is a valid wide character, it is pushed back onto the stream
54 and thus becomes available for future wide-character read operations.
55 The file-position indicator is decremented by one or more.
58 The backing storage of the file is not affected.
62 need not be the last wide-character read from the stream;
63 it can be any other valid wide character.
65 If the implementation supports multiple push-back operations in a row, the
66 pushed-back wide characters will be read in reverse order; however, only one
67 level of push-back is guaranteed.
78 For an explanation of the terms used in this section, see
86 Interface Attribute Value
89 T} Thread safety MT-Safe
95 POSIX.1-2001, POSIX.1-2008, C99.