projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed internal version of fputs().
[mmh]
/
sbr
/
peekc.c
diff --git
a/sbr/peekc.c
b/sbr/peekc.c
index
d77039b
..
7d5f7f9
100644
(file)
--- a/
sbr/peekc.c
+++ b/
sbr/peekc.c
@@
-1,9
+1,10
@@
-
/*
/*
- * peekc.c -- peek at the next character in a stream
- *
- * $Id$
- */
+** peekc.c -- peek at the next character in a stream
+**
+** This code is Copyright (c) 2002, by the authors of nmh. See the
+** COPYRIGHT file in the root directory of the nmh distribution for
+** complete copyright information.
+*/
#include <h/mh.h>
#include <h/mh.h>
@@
-11,9
+12,9
@@
int
peekc(FILE *fp)
{
int
peekc(FILE *fp)
{
- register int c;
+ register int c;
- c = getc(fp);
- ungetc(c, fp);
- return c;
+ c = getc(fp);
+ ungetc(c, fp);
+ return c;
}
}