std::ungetc

std::ungetc

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

If ch does not equal EOF, pushes the character ch (reinterpreted as unsigned char) into the input buffer associated with the stream stream in such a manner than subsequent read operation from stream will retrieve that character. The external device associated with the stream is not modified.

Stream repositioning operations 登录查看完整内容