Lines Matching refs:buf

250 	char *buf = NULL, *message = NULL;  in php_ereg_eprint()  local
258 buf = (char *)safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_eprint()
259 if (!buf) return; /* fail silently */ in php_ereg_eprint()
261 regerror(REG_ITOA | err, re, buf, buf_len); in php_ereg_eprint()
273 snprintf(message, buf_len, "%s: ", buf); in php_ereg_eprint()
282 STR_FREE(buf); in php_ereg_eprint()
301 char *buf = NULL; in php_ereg() local
355 buf = emalloc(string_len); in php_ereg()
369 efree(buf); in php_ereg()
408 char *buf, /* buf is where we build the replaced string */ in php_ereg_replace() local
438 buf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace()
441 buf[0] = '\0'; in php_ereg_replace()
448 efree(buf); in php_ereg_replace()
461 new_l = strlen(buf) + subs[0].rm_so; /* part before the match */ in php_ereg_replace()
477 strncpy(nbuf, buf, buf_len - 1); in php_ereg_replace()
479 efree(buf); in php_ereg_replace()
480 buf = nbuf; in php_ereg_replace()
482 tmp = strlen(buf); in php_ereg_replace()
484 strncat(buf, &string[pos], subs[0].rm_so); in php_ereg_replace()
487 walkbuf = &buf[tmp + subs[0].rm_so]; in php_ereg_replace()
511 new_l = strlen (buf) + 1; in php_ereg_replace()
515 strncpy(nbuf, buf, buf_len-1); in php_ereg_replace()
516 efree(buf); in php_ereg_replace()
517 buf = nbuf; in php_ereg_replace()
520 buf [new_l-1] = string [pos-1]; in php_ereg_replace()
521 buf [new_l] = '\0'; in php_ereg_replace()
526 new_l = strlen(buf) + strlen(&string[pos]); in php_ereg_replace()
530 strncpy(nbuf, buf, buf_len-1); in php_ereg_replace()
531 efree(buf); in php_ereg_replace()
532 buf = nbuf; in php_ereg_replace()
535 strlcat(buf, &string[pos], buf_len); in php_ereg_replace()
544 return (buf); in php_ereg_replace()