Revision 12455,
238 bytes
checked in by danw, 26 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r12454,
which included commits to RCS files with non-trunk default branches.
|
Rev | Line | |
---|
[12454] | 1 | |
---|
| 2 | /* |
---|
| 3 | * peekc.c -- peek at the next character in a stream |
---|
| 4 | * |
---|
| 5 | * $Id: peekc.c,v 1.1.1.1 1999-02-07 18:14:09 danw Exp $ |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <h/mh.h> |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | int |
---|
| 12 | peekc(FILE *fp) |
---|
| 13 | { |
---|
| 14 | register int c; |
---|
| 15 | |
---|
| 16 | c = getc(fp); |
---|
| 17 | ungetc(c, fp); |
---|
| 18 | return c; |
---|
| 19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.