ungetc

Syntax:

    #include <cstdio>
    int ungetc( int ch, FILE *stream );

The function ungetc() puts the character ch back in stream.

Related Topics: getc, (C++ I/O) putback