std::ungetwc

From Cppreference

< cpp | io | c
Jump to: navigation, search
Defined in header <cwchar>

wint_t ungetc( wint_t ch, FILE *stream );

Puts the wide character ch back to the given file stream. Only one wide character pushback is guaranteed.

[edit] Parameters

ch - wide character to be put back
stream - file stream to put the wide character back to

[edit] Return value

On success ch is returned.

On failure WEOF is returned and the given stream remains unchanged.

[edit] See also

ungetc
puts a character back into a file stream
(function)
fgetwc
getwc
gets a wide character from a file stream
(function)