Jump to content

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

From Wikibooks, open books for an open world

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