ungetc
#define Ungetc(c, f) (--file_pos, ungetc(c, f))
if (ungetc(getc(fp), fp) == EOF) {
if (eof || ungetc(getc(fp), fp) == EOF) {
ungetc(i, stdin);
ungetc(c, stdin);
ungetc(c, stdin);
ungetc('\n', stdin);
ungetc(c, stdin);
ungetc(c, stdin);
k = ungetc(getchar(), stdin);
int ungetc(int, FILE *);
PROTO_NORMAL(ungetc);
DEF_STRONG(ungetc);
ungetc(buf[n],
ungetc(buf[n],
(void) ungetc(*(u_char *)--p, fp);
(void) ungetc(c, fp);
ungetc(*(u_char *)--p, fp);
(void) ungetc(c, fp);/* sign */
(void) ungetc(c, fp);
TEST_NARROW(c = fgetc(f); ungetc(c, f));
assert(ungetc('X', fp) != 0);
ungetc('A', fp);
ungetc('A', fp);
ungetc('A', fp);
ungetc('e', fp);
ungetc('A', fp);
ungetc('A', fp);
ungetc('A', fp);
ungetc('A', fp);
ungetc('A', fp);
ungetc('A', fp);
ungetc('A', fp);
ungetc('A', fp);
ungetc(c, fp); /* push back the character has been read */
ungetc('X', fp); /* push back the character has not been read */
ungetc(c, f);
ungetc(c, fp);
ungetc(c, in);
ungetc(c, in);
ungetc(c, in);
ungetc(c, stdin);
ungetc(c, stdin);
ungetc(c, stdin);
if (*--k && ungetc(*k, f) == EOF)
ungetc(c, inf);
(void)ungetc(c, inf);
ungetc(c, inf);
(void)ungetc(c, inf);
(void)ungetc(c, inf);
(void)ungetc(c, inf);
(void)ungetc(c, inf);
(void)ungetc(c, inf);
ungetc(c, inf);
(void)ungetc(c, inf);
(void)ungetc(c, inf);
(void)ungetc(c, inf);
(void)ungetc(c, inf);
ungetc(c, rfp->rf_file);
ungetc(c, rfp->rf_file);
(void)ungetc(src->lastchar, src->u.stream);
ungetc(c, infile);
ungetc(c, infile);
ungetc(c, yyfp);
ungetc(c, input);
ungetc(c = getc(f), f);
ungetc(c2, stream);
ungetc(c2, stream);
if ((col > lim) && (ungetc(ch, inf) == EOF)) {
ungetc(c, rfp->rf_file);
ungetc(c, rfp->rf_file);
(void) ungetc(c, fin);
(void) ungetc(c, fin);
(void) ungetc(c, fin);
(void)ungetc(c, infile);
ungetc(ch, file_fd);
ungetc(ch, infile);
if (c != EOF && c != '\n' && ungetc(c, fp) == EOF)
if (pos < 0 && off > 0 && ch != EOF && ungetc(ch, tf[0].fp) == EOF) {
if (ch != EOF && ungetc(ch, tf->fp) == EOF) {
ungetc(ch, ps->f);
ungetc(c, f);
(void) ungetc(ch, fp);
ungetc(ch, file);
ungetc(c, cfile);
(void) ungetc(c, fconfig);
ungetc(ch, stdin);
ungetc (c, f);
ungetc(c, stdin);
ungetc(c, file.stream);
ungetc(c, file.stream);
ungetc(c, file.stream);
ungetc(c, file.stream);
ungetc('-', file.stream);
ungetc('-', file.stream);
ungetc(c, file->stream);
ungetc(c, fp);
ungetc(c, in);
ungetc(c, in);
ungetc(c, in);
ungetc(c, file->stream);
(void) ungetc(ch, fp);
(void) ungetc(ch, fp);