Lines Matching refs:delim
26 * paste [-s] [-d delim] [file] ...
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);
134 else if(c=delim[d])
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)
163 else if(c=delim[d])
179 register char *cp, *delim;
186 delim = 0;
190 delim = opt_info.arg;
205 if(!delim || !*delim)
207 delim = defdelim;
208 delim[0] = '\t';
209 delim[1] = 0;
211 dlen = dsiz = stresc(delim);
215 cp = delim;
216 ep = delim + dlen;
227 cp = delim;
259 if(spaste(fp,sfstdout,delim,dsiz,dlen,mp) < 0)
269 if(error_info.errors==0 && paste(n,streams,sfstdout,delim,dsiz,dlen,mp) < 0)