Pushes a character back onto the specified input stream.
#include <stdio.h> int ungetc ( int c, FILE *fp);
(IN) Specifies the byte to be pushed back onto the specified input stream.
(IN) Points to the input stream.
If successful, returns the character pushed back. Otherwise, returns EOF.
The ungetc function pushes the character specified by c (converted to an unsigned char) 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.