comparison lib-src/yow.c @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 84b14dcb0985
children abe6d1db359e
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
89 89
90 #define AVG_LEN 40 /* average length of a quotation */ 90 #define AVG_LEN 40 /* average length of a quotation */
91 91
92 /* Sets len and header_len */ 92 /* Sets len and header_len */
93 void 93 void
94 setup_yow(fp) 94 setup_yow (FILE *fp)
95 FILE *fp;
96 { 95 {
97 int c; 96 int c;
98 97
99 /* Get length of file */ 98 /* Get length of file */
100 /* 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,
118 } 117 }
119 118
120 119
121 /* 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 */
122 void 121 void
123 yow (fp) 122 yow (FILE *fp)
124 FILE *fp;
125 { 123 {
126 long offset; 124 long offset;
127 int c, i = 0; 125 int c, i = 0;
128 char *buf; 126 char *buf;
129 unsigned int bufsize; 127 unsigned int bufsize;