Table of Contents Previous topic Next topic
C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->ungetch()
Summary
#include <stdio.h>
int ungetch(int c); Push back character onto stdin
Parameter
c The character to push back
Description
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.
Return Value
The function returns the character pushed back or EOF if an error occurs.