LBUFSIZE
pos = (ch_block * LBUFSIZE) + bp->datasize;
(unsigned int)(LBUFSIZE - bp->datasize));
nblocks = (ch_fpos + LBUFSIZE - 1) / LBUFSIZE;
new_block = pos / LBUFSIZE;
ch_offset = pos % LBUFSIZE;
unsigned char data[LBUFSIZE];
return ((ch_block * LBUFSIZE) + ch_offset);
if (ch_offset < LBUFSIZE-1) {
ch_offset = LBUFSIZE-1;
maxbufs = ((bufspace * 1024) + LBUFSIZE-1) / LBUFSIZE;