Manpage of UNGETWC
UNGETWCSection: Linux Programmer's Manual (3)
NAMEungetwc - push back a wide character onto a FILE stream
#include <wchar.h>wint_t ungetwc(wint_t wc, FILE *stream);
DESCRIPTIONThe ungetwc() function is the wide-character equivalent of the ungetc(3) function. It pushes back a wide character onto streamand returns it.
If wcis WEOF, it returns WEOF. If wcis an invalid wide character, it sets errnoto EILSEQand returns WEOF.
If wcis a valid wide character, it is pushed back onto the stream and thus becomes available for future wide-character read operations. The file-position indicator is decremented by one or more. The end-of-file indicator is cleared. The backing storage of the file is not affected.
Note: wcneed not be the last wide-character read from the stream; it can be any other valid wide character.
RETURN VALUEThe ungetwc() function returns wcwhen successful, or WEOFupon failure.
ATTRIBUTESFor an explanation of the terms used in this section, see attributes(7).
CONFORMING TOPOSIX.1-2001, POSIX.1-2008, C99.
NOTESThe behavior of ungetwc() depends on the LC_CTYPEcategory of the current locale.
This document was created by man2html, using the manual pages.
Time: 16:30:25 GMT, March 14, 2017 Click Here!