Mercurial > hg > xemacs-beta
comparison lib-src/yow.c @ 363:972bbb6d6ca2 r21-1-11
Import from CVS: tag r21-1-11
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:59:28 +0200 |
parents | 2d532a89d707 |
children | cc15677e0335 |
comparison
equal
deleted
inserted
replaced
362:1e474c183006 | 363:972bbb6d6ca2 |
---|---|
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(fp) | 93 setup_yow (FILE *fp) |
94 FILE *fp; | |
95 { | 94 { |
96 int c; | 95 int c; |
97 | 96 |
98 /* Get length of file */ | 97 /* Get length of file */ |
99 /* Because the header (stuff before the first SEP) can be very long, | 98 /* Because the header (stuff before the first SEP) can be very long, |
117 } | 116 } |
118 | 117 |
119 | 118 |
120 /* go to a random place in the file and print the quotation there */ | 119 /* go to a random place in the file and print the quotation there */ |
121 void | 120 void |
122 yow (fp) | 121 yow (FILE *fp) |
123 FILE *fp; | |
124 { | 122 { |
125 long offset; | 123 long offset; |
126 int c, i = 0; | 124 int c, i = 0; |
127 char *buf; | 125 char *buf; |
128 unsigned int bufsize; | 126 unsigned int bufsize; |