Lines Matching defs: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;
192 delim = opt_info.arg;
209 if(!delim || !*delim)
211 delim = defdelim;
212 delim[0] = '\t';
213 delim[1] = 0;
215 if (!(delim = strdup(delim)))
217 dlen = dsiz = stresc(delim);
221 cp = delim;
222 ep = delim + dlen;
233 free(delim);
236 cp = delim;
268 if(spaste(fp,sfstdout,delim,dsiz,dlen,mp) < 0)
278 if(error_info.errors==0 && paste(n,streams,sfstdout,delim,dsiz,dlen,mp) < 0)
286 free(delim);