Table of Contents Previous topic Next topic
C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->ungetch()
int ungetch(int c); Push back character onto stdin
c The character to push back
This function converts the character c to unsigned char and pushes it back onto stdin. The next input from stdin then reads this character. Only one character of pushback is supported. EOF cannot be pushed back. The function returns the character pushed back or EOF is an error has occurred.
The function returns the character pushed back or EOF if an error occurs.