recopy (ft
, fb
, fa
, nhash
)
/* copy fb (old hash items/pointers) to ft (new ones) */
err("No old pointers",0);
fread(&n
, sizeof(n
), 1, fa
);
fread(&iflong
, sizeof(iflong
), 1, fa
);
hpt_l
= calloc(sizeof(*hpt_l
), n
+1);
n
=fread(hpt_l
, sizeof(*hpt_l
), n
, fa
);
hpt_s
= calloc(sizeof(*hpt_s
), n
+1);
n
=fread(hpt_s
, sizeof(*hpt_s
), n
, fa
);
fprintf(stderr
, "Changing hash value to old %d\n",n
);
while ( (k
= (*getfun
)(fb
) ) != -1)
fprintf(ft
, "%04d %06ld\n",i
,k
);