Lines Matching defs:linebuf

62 static int	stripnulls(register char *linebuf, register int nread);
100 char linebuf[LINESIZE+1], *cp;
243 if ((nread = getaline(linebuf,LINESIZE,stdin,&hasnulls)) == NULL) {
255 if (intty && equal(".\n", linebuf) &&
266 if (write(fileno(obuf),linebuf,nread) != nread)
270 if (linebuf[0] == '\n') {
275 if (!headerp(linebuf)) {
281 nread = stripnulls(linebuf, nread);
294 if (strlen(linebuf) + strlen(cp2) >=
297 cp = &linebuf[strlen(linebuf)];
298 while (cp > linebuf &&
304 if ((c = strlen(linebuf)) > 0) {
305 cp = &linebuf[c-1];
306 while (cp > linebuf && isspace(*cp))
310 if (ishfield(linebuf, "to"))
311 hp->h_to = addto(hp->h_to, hcontents(linebuf));
312 else if (ishfield(linebuf, "subject"))
314 addone(hp->h_subject, hcontents(linebuf));
315 else if (ishfield(linebuf, "cc"))
316 hp->h_cc = addto(hp->h_cc, hcontents(linebuf));
317 else if (ishfield(linebuf, "bcc"))
319 addto(hp->h_bcc, hcontents(linebuf));
320 else if (ishfield(linebuf, "default-options"))
322 addone(hp->h_defopt, hcontents(linebuf));
324 hp->h_others = Xaddone(hp->h_others, linebuf);
328 if ((linebuf[0] != escape) || (rflag != NOSTR) ||
330 if (write(fileno(obuf),linebuf,nread) != nread)
337 if ((nread > 1) && (linebuf[1] == escape)) {
338 if (write(fileno(obuf),linebuf+1,nread-1) != (nread-1))
343 nread = stripnulls(linebuf, nread);
344 c = linebuf[1];
345 linebuf[nread - 1] = '\0';
375 for (cp = &linebuf[2]; any(*cp, " \t"); cp++)
395 shell(&linebuf[2]);
404 execute(&linebuf[2], 1);
450 hp->h_to = addto(hp->h_to, &linebuf[2]);
459 cp = &linebuf[2];
471 hp->h_cc = addto(hp->h_cc, &linebuf[2]);
479 hp->h_bcc = addto(hp->h_bcc, &linebuf[2]);
491 copy(Getf("DEAD"), &linebuf[2]);
505 cp = &linebuf[2];
565 cp = &linebuf[2];
595 cp = &linebuf[2];
673 obuf = mespipe(ibuf, obuf, &linebuf[2]);
1273 register char *cp, *cp2, *linebuf;
1279 linebuf = (char *)srealloc(hf, (unsigned)(strlen(hf) + strlen(news) + 2));
1280 cp2 = strchr(linebuf, '\0');
1281 if (cp2 > linebuf && cp2[-1] != ' ')
1288 return(linebuf);
1309 register char *linebuf;
1321 linebuf = (char *)salloc((unsigned)(strlen(news) + 1));
1322 strcpy(linebuf, news);
1323 hf[nhf++] = linebuf;
1373 stripnulls(register char *linebuf, register int nread)
1378 if (linebuf[i] == '\0')
1381 if (linebuf[j] != '\0')
1382 linebuf[i++] = linebuf[j];
1383 linebuf[i] = '\0';