Last change
on this file since 400 was 337, checked in by coas-nagasima, 6 years ago |
ASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
263 bytes
|
Rev | Line | |
---|
[337] | 1 | #include "stdio_impl.h"
|
---|
| 2 |
|
---|
| 3 | int ungetc(int c, FILE *f)
|
---|
| 4 | {
|
---|
| 5 | if (c == EOF) return c;
|
---|
| 6 |
|
---|
| 7 | FLOCK(f);
|
---|
| 8 |
|
---|
| 9 | if (!f->rpos) __toread(f);
|
---|
| 10 | if (!f->rpos || f->rpos <= f->buf - UNGET) {
|
---|
| 11 | FUNLOCK(f);
|
---|
| 12 | return EOF;
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | *--f->rpos = c;
|
---|
| 16 | f->flags &= ~F_EOF;
|
---|
| 17 |
|
---|
| 18 | FUNLOCK(f);
|
---|
| 19 | return c;
|
---|
| 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.