C++ Programming/Code/Standard C Library/Functions/ungetc

From Wikibooks, open books for an open world
Jump to navigation Jump to search

ungetc[edit | edit source]

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