Mercurial > hg > xemacs-beta
comparison lib-src/yow.c @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | 972bbb6d6ca2 |
children | 74fd4e045ea6 |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
88 | 88 |
89 #define AVG_LEN 40 /* average length of a quotation */ | 89 #define AVG_LEN 40 /* average length of a quotation */ |
90 | 90 |
91 /* Sets len and header_len */ | 91 /* Sets len and header_len */ |
92 void | 92 void |
93 setup_yow (FILE *fp) | 93 setup_yow(fp) |
94 FILE *fp; | |
94 { | 95 { |
95 int c; | 96 int c; |
96 | 97 |
97 /* Get length of file */ | 98 /* Get length of file */ |
98 /* Because the header (stuff before the first SEP) can be very long, | 99 /* Because the header (stuff before the first SEP) can be very long, |
116 } | 117 } |
117 | 118 |
118 | 119 |
119 /* go to a random place in the file and print the quotation there */ | 120 /* go to a random place in the file and print the quotation there */ |
120 void | 121 void |
121 yow (FILE *fp) | 122 yow (fp) |
123 FILE *fp; | |
122 { | 124 { |
123 long offset; | 125 long offset; |
124 int c, i = 0; | 126 int c, i = 0; |
125 char *buf; | 127 char *buf; |
126 unsigned int bufsize; | 128 unsigned int bufsize; |