Lines Matching refs:in
33 * copy the lines starting at offset <start> from in <in> to <out>
34 * in reverse order
36 int rev_line(Sfio_t *in, Sfio_t *out, off_t start)
42 if(sfseek(in,(off_t)0,SEEK_CUR) < 0)
47 if(start>0 && sfmove(in, (Sfio_t*)0, start, -1) != start)
49 if(sfmove(in, tmp, SF_UNBOUND, -1) < 0 || !sfeof(in) || sferror(tmp))
51 in = tmp;
54 if((offset = sfseek(in,(off_t)0,SEEK_END)) <= start)
65 sfseek(in, offset, SEEK_SET);
66 if((n=sfread(in, buff, n)) <=0)
96 else if(sfmove(in,out,nleft,-1) != nleft)
107 sfseek(in, start, SEEK_SET);
108 if(sfmove(in,out,nleft,-1) != nleft)