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)
339 if (sfwrite(fdout, (char*)bp, c) < 0)
353 sfwrite(fdout, cut->ldelim.str, cut->ldelim.len);
355 sfputc(fdout, cut->ldelim.chr);
361 * cut each line of file <fdin> and put results to <fdout> using list <list>
366 cutfields(Cut_t* cut, Sfio_t* fdin, Sfio_t* fdout)
435 if ((c = cp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0)
464 if (sfwrite(fdout, (char*)mb, c) < 0)
522 if ((c = wp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0)
541 sfmove(fdtmp,fdout,offset,-1);
547 sfputc(fdout,'\n');
552 if (copy && (c=cp-copy)>0 && (!nodelim || !cut->sflag) && sfwrite(fdout,(char*)copy,c)< 0)