Name
ungetwc function — Pushes back a wide character
Synopsis
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.
See Also
fgetwc function,
getwc
function, ungetc
in <cstdio>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.