ungetc()

This is a File I/O function. It is not implemented in the Compiler.

Syntax
  #include <stdio.h>

  
  int ungetc(int ch, FILE *f);

  
Description

ungetc() pushes the single character ch back onto the input stream f. The next read from f will read that character.

Return

ch

See also

fgets(),

fopen(),

getc(), and

getchar()