Lines Matching refs:buf
46 static void custom_text(struct options *opt, char *text, char *buf);
283 void custom_text(struct options *opt, char *text, char *buf)
305 buf[j] = '\\';
308 buf[j] = '\n';
315 buf[j] = '\t';
318 buf[j] = 't';
325 buf[j] = crwrap ? '\n' : ' ';
328 buf[j] = opt->text_unchanged ? '\t' : ' ';
331 buf[j] = text[i];
334 if (!trim || buf[j] != ' ' || j == 0 || buf[j-1] != ' ')
337 buf[j] = '\0';