Namespaces
Variants
Views
Actions

std::ungetc

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

 
 
 
 
Defined in header <cstdio>
int ungetc( int ch, FILE *stream );

Puts the character ch back to the given file stream.

Parameters

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

Return value

On success ch is returned.

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

See also

Template:cpp/io/c/dcl list fgetc
C documentation for ungetc