Namespaces
Variants
Views
Actions

std::ungetwc

From cppreference.com
< cpp‎ | io‎ | c
Revision as of 17:33, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
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.

Parameters

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

Return value

On success ch is returned.

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

See also

Template:cpp/io/c/dcl list ungetcTemplate:cpp/io/c/dcl list fgetwc
C documentation for ungetwc