Lines Matching defs:fdout
248 * cut each line of file <fdin> and put results to <fdout> using list <list>
252 cutcols(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout)
337 if (sfwrite(fdout, (char*)bp, c) < 0)
351 sfwrite(fdout, cut->ldelim.str, cut->ldelim.len);
353 sfputc(fdout, cut->ldelim.chr);
359 * cut each line of file <fdin> and put results to <fdout> using list <list>
364 cutfields(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout)
433 if ((c = cp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0)
462 if (sfwrite(fdout, (char*)mb, c) < 0)
520 if ((c = wp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0)
539 sfmove(fdtmp,fdout,offset,-1);
545 sfputc(fdout,'\n');
550 if (copy && (c=cp-copy)>0 && (!nodelim || !cut->sflag) && sfwrite(fdout,(char*)copy,c)< 0)