Lines Matching refs:buf
138 char buf[5];
142 buf[0] = m->metaval;
143 buf[1] = '\0';
144 macdefine(&e->e_macro, A_TEMP, m->metaname, buf);
146 buf[0] = MATCHREPL;
147 buf[2] = '\0';
150 buf[1] = c;
151 macdefine(&e->e_macro, A_TEMP, c, buf);
171 ** buf -- the place to put the expansion.
186 doexpand(s, buf, bufsize, explevel, e)
188 char *buf;
298 /* copy to end of q or max space remaining in buf */
328 doexpand(xbuf, buf, bufsize, explevel + 1, e);
337 (void) sm_strlcpy(buf, xbuf, bufsize);
344 memmove(buf, xbuf, i);
345 buf[i] = '\0';
351 xputs(sm_debug_file(), buf);
357 expand(s, buf, bufsize, e)
359 char *buf;
363 doexpand(s, buf, bufsize, 0, e);
639 char buf[2];
641 buf[0] = *p;
642 buf[1] = '\0';
643 xputs(sm_debug_file(), buf);