Lines Matching refs:out
82 * to <out>
85 static int paste(int nstream,Sfio_t* streams[],Sfio_t *out, register const char *delim, int dsiz, int dlen, Delim_t* mp)
104 sfnputc(out, *delim, n);
108 sfwrite(out,delim,dsiz);
116 sfwrite(out,delim,z);
121 if(sfwrite(out,cp,sfvalue(fp)-((n+1)<nstream)) < 0)
133 sfwrite(out,mp[d].chr,mp[d].len);
135 sfputc(out,c);
139 sfputc(out,'\n');
146 * Handles paste -s, for file <in> to file <out> using delimiters <delim>
148 static int spaste(Sfio_t *in,register Sfio_t* out,register const char *delim,int dsiz,int dlen,Delim_t* mp)
152 if((cp = sfgetr(in,'\n',0)) && sfwrite(out,cp,sfvalue(in)-1) < 0)
162 sfwrite(out,mp[d].chr,mp[d].len);
164 sfputc(out,c);
167 if(sfwrite(out,cp,sfvalue(in)-1) < 0)
170 sfputc(out,'\n');
216 error(ERROR_system(1), "out of space");
234 error(ERROR_system(1), "out of space");
257 error(ERROR_exit(1), "out of space");