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

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

ungetc[edit]

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