Lines Matching refs:outbuf
67 static DYNBUF outbuf;
152 free_DYN(&outbuf);
402 while (outbuf.used > 0 && outbuf.text[outbuf.used - 1] == ' ')
403 outbuf.text[--outbuf.used] = '\0';
411 strcpy_DYN(&outbuf, trailer);
425 strcpy_DYN(&outbuf, src);
426 strcpy_DYN(&outbuf, separator);
623 strcpy_DYN(&outbuf, 0);
627 strcpy_DYN(&outbuf, tterm->term_names);
633 char *p = outbuf.text;
641 strcpy_DYN(&outbuf, separator);
642 column = (int) outbuf.used;
936 j = (PredIdx) outbuf.used;
938 && outbuf.text[j - 1] == '\t'
939 && outbuf.text[j - 2] == '\n') {
940 outbuf.used -= 2;
943 && outbuf.text[j - 1] == ':'
944 && outbuf.text[j - 2] == '\t'
945 && outbuf.text[j - 3] == '\n'
946 && outbuf.text[j - 4] == '\\') {
947 outbuf.used -= 4;
951 outbuf.text[outbuf.used] = '\0';
953 strcpy_DYN(&outbuf, " ");
960 fprintf(stderr, "term_names=%s, len=%d, strlen(outbuf)=%d, outbuf=%s\n",
961 tterm->term_names, len, outbuf.used, outbuf.text);
970 return (infodump ? len : (int) termcap_length(outbuf.text));
1245 if (outbuf.used != 0) {
1250 for (j = (int) outbuf.used - 1; j > 0; --j) {
1251 char ch = outbuf.text[j];
1255 outbuf.used = (size_t) j;
1257 outbuf.used = (size_t) j;
1258 } else if (ch == delim && (j == 0 || outbuf.text[j - 1] != '\\')) {
1259 outbuf.used = (size_t) (j + 1);
1264 outbuf.text[outbuf.used] = '\0';
1266 (void) fputs(outbuf.text, stdout);
1268 return (int) outbuf.used;