#include <stdio.h> int ungetc(int c, FILE *file);
This function pushes c back into the file. You can only push back one character at a time.
The pushed-back character, or EOF
on error.
ANSI, POSIX
int q; while (q = getc(stdin) != 'q'); ungetc(q);
Go to the first, previous, next, last section, table of contents.