1: /* @(#)ungetc.c 2.1 SCCS id keyword */
2: #include <stdio.h>
3:
4: ungetc(c, iop)
5: register FILE *iop;
6: {
7: if (c == EOF)
8: return(EOF);
9: if ((iop->_flag&_IOREAD)==0 || iop->_ptr <= iop->_base)
10: if (iop->_ptr == iop->_base && iop->_cnt==0)
11: *iop->_ptr++;
12: else
13: return(EOF);
14: iop->_cnt++;
15: *--iop->_ptr = c;
16: return(c);
17: }
Defined functions
ungetc
defined in line
4; used 61 times
- in /usr/src/cmd/c/cvopt.c line
97,
134,
174,
197,
249,
353
- in /usr/src/cmd/cron.c line
259
- in /usr/src/cmd/dc/dc.c line
1141
- in /usr/src/cmd/deroff.c line
438
- in /usr/src/cmd/f77/lex.c line
303
- in /usr/src/cmd/learn/copy.c line
230
- in /usr/src/cmd/learn/learn.c line
46
- in /usr/src/cmd/mip/scan.c line
158,
316-318(2),
383,
438,
509,
516-521(2),
554,
562,
690,
918,
927
- in /usr/src/cmd/ptx.c line
282
- in /usr/src/cmd/quot.c line
109
- in /usr/src/cmd/refer/util/flagger.c line
136
- in /usr/src/cmd/yacc/y2.c line
514,
577,
591,
621,
758
- in /usr/src/games/snake/snake.c line
168,
205,
244
- in /usr/src/lib/ape/min.c line
30,
36,
65
- in /usr/src/lib/c/stdio/doscan.c line
83,
92,
173,
239
- in /usr/src/lib/libI77/ioprim.c line
52
- in /usr/src/lib/libI77/lread.c line
29,
52
- in /usr/src/lib/libI77/rsfe.c line
50
- in /usr/src/lib/mp/mout.c line
38
- in /usr/src/ucb/Mail/aux.c line
268
- in /usr/src/ucb/Mail/fio.c line
47
- in /usr/src/ucb/ctags.c line
323,
466
- in /usr/src/ucb/delivermail/arpa.c line
498
- in /usr/src/ucb/delivermail/maketemp.c line
102
- in /usr/src/ucb/m11/macxrf.c line
128
- in /usr/src/ucb/mkstr.c line
8
- in /usr/src/ucb/more.c line
32
- in /usr/src/ucb/sendmail/aux/arpa.c line
526
- in /usr/src/ucb/sendmail/src/alias.c line
399
- in /usr/src/ucb/sendmail/src/collect.c line
107
- in /usr/src/ucb/sendmail/src/util.c line
706