ungetc
Pushes a character back onto the specified input stream
#include <stdio.h> int ungetc ( int c, FILE *fp);
The ungetc function returns the character pushed back.
The ungetc function pushes the character specified by c back onto the input stream specified by fp. This character is returned by the next read from the stream. Only the last character returned in this way is remembered.
The ungetc function clears the EOF indicator, unless the value of c is EOF.