The Wayback Machine - https://web.archive.org/web/20160110081754/http://en.cppreference.com:80/w/cpp/io/c/ungetc
Namespaces
Variants
Views
Actions

std::ungetc

From cppreference.com
< cpp‎ | io‎ | c
 
 
 
 
Defined in header <cstdio>
int ungetc( int ch, std::FILE *stream );

Puts the character ch back to the given file stream.

[edit] Parameters

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

[edit] Return value

On success ch is returned.

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

[edit] See also

gets a character from a file stream
(function) [edit]
C documentation for ungetc
Morty Proxy This is a proxified and sanitized view of the page, visit original site.