projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix poorly copied comment.
[u/mdw/catacomb]
/
mptext-file.c
diff --git
a/mptext-file.c
b/mptext-file.c
index
ed6f700
..
6e7aa35
100644
(file)
--- a/
mptext-file.c
+++ b/
mptext-file.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mptext-file.c,v 1.
1 1999/11/17 18:02:16
mdw Exp $
+ * $Id: mptext-file.c,v 1.
2 1999/12/22 15:56:21
mdw Exp $
*
* Reading and writing large integers on files
*
*
* Reading and writing large integers on files
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mptext-file.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: mptext-file.c,v $
+ * Revision 1.2 1999/12/22 15:56:21 mdw
+ * Make the buffer passed to `put' op constant.
+ *
* Revision 1.1 1999/11/17 18:02:16 mdw
* New multiprecision integer arithmetic suite.
*
* Revision 1.1 1999/11/17 18:02:16 mdw
* New multiprecision integer arithmetic suite.
*
@@
-49,7
+52,7
@@
static int get(void *p) { FILE *fp = p; return getc(fp); }
static void unget(int ch, void *p) { FILE *fp = p; ungetc(ch, fp); }
static void unget(int ch, void *p) { FILE *fp = p; ungetc(ch, fp); }
-static int put(char *s, size_t sz, void *p)
+static int put(c
onst c
har *s, size_t sz, void *p)
{
FILE *fp = p;
return (fwrite(s, 1, sz, fp) != sz);
{
FILE *fp = p;
return (fwrite(s, 1, sz, fp) != sz);