ungetwc function — Pushes back a wide character
wint_t ungetwc(wint_t wc, FILE* stream)
The ungetwc
function pushes
back the wide character wc
, so
the next read from stream
will
return wc
. The standard
guarantees that you can push back just one character, though in some
situations you may be able to push back more.
The return value is wc
if
the pushback was successful, or WEOF
if the pushback was not
successful.