Lines Matching refs:buf
137 split(Fmt_t* fp, char* buf, int splice)
147 for (ep = buf; *ep == ' '; ep++);
148 prefix = ep - buf;
154 if ((*ep == 0 || *buf == '.') && !isoption(fp, 'o'))
157 prefix = strlen(buf);
159 strcpy(fp->outbuf, buf);
215 if (isoption(fp, 's') || *buf == 0)
242 char buf[8192];
286 dp = buf;
342 if (x && dp != buf && *(dp - 1) != ' ')
357 if (x && c != '\n' && dp != buf && *(dp - 1) != ' ')
367 if (c == ' ' && (dp == buf || *(dp - 1) == ' '))
413 split(fp, buf, 0);
489 while (cp < lp && *cp != ' ' && *cp != '\t' && *cp != ']' && dp < &buf[sizeof(buf)-3])
494 split(fp, buf, 0);
495 dp = buf;
508 if (dp > buf)
524 c = isoption(fp, 'o') ? 1 : TABSZ - (dp - buf) % TABSZ;
525 if (dp >= &buf[sizeof(buf) - c - 3])
536 if (dp >= &buf[sizeof(buf) - 3])
539 while (--tp > buf)
559 split(fp, buf, splice);