std::ungetc

Defined in header <cstdio>
int ungetc( int ch, std::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

gets a character from a file stream
(function)
C documentation for ungetc
doc_CPP
2016-10-11 10:07:38
Comments
Leave a Comment

Please login to continue.