version 1.8, 2003/06/03 02:56:16 |
version 1.9, 2004/07/20 03:50:27 |
|
|
* copy sorted lines to output; check for uniqueness |
* copy sorted lines to output; check for uniqueness |
*/ |
*/ |
void |
void |
append(keylist, nelem, depth, fp, put, ftbl) |
append(u_char **keylist, int nelem, int depth, FILE *fp, |
u_char **keylist; |
void (*put)(RECHEADER *, FILE *), struct field *ftbl) |
int nelem; |
|
int depth; |
|
FILE *fp; |
|
void (*put)(RECHEADER *, FILE *); |
|
struct field *ftbl; |
|
{ |
{ |
u_char *wts, *wts1; |
u_char *wts, *wts1; |
int n, odepth; |
int n, odepth; |
|
|
* output the already sorted eol bin. |
* output the already sorted eol bin. |
*/ |
*/ |
void |
void |
rd_append(binno, infl0, nfiles, outfp, buffer, bufend) |
rd_append(int binno, union f_handle infl0, int nfiles, FILE *outfp, |
u_char *buffer, *bufend; |
u_char *buffer, u_char *bufend) |
int binno, nfiles; |
|
union f_handle infl0; |
|
FILE *outfp; |
|
{ |
{ |
RECHEADER *rec; |
RECHEADER *rec; |
|
|
|
|
* append plain text--used after sorting the biggest bin. |
* append plain text--used after sorting the biggest bin. |
*/ |
*/ |
void |
void |
concat(a, b) |
concat(FILE *a, FILE *b) |
FILE *a, *b; |
|
{ |
{ |
int nread; |
int nread; |
char buffer[4096]; |
char buffer[4096]; |