This is a File I/O function. It is not implemented in the Compiler.
#include <stdio.h>
int ungetc(int ch, FILE *f);
ungetc() pushes the single character ch back onto the input stream f. The next read from f will read that character.
ch
fgets(),
fopen(),
getc(), and
getchar()