Lines Matching refs:buf
136 PHPAPI char *php_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf) /* {{{ */ in php_gcvt() argument
151 …snprintf(buf, ndigit + 1, "%s%s", (sign && *digits == 'I') ? "-" : "", *digits == 'I' ? "INF" : "N… in php_gcvt()
153 return (buf); in php_gcvt()
156 dst = buf; in php_gcvt()
230 return (buf); in php_gcvt()
375 boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, size_t *len) in php_conv_fp() argument
377 register char *s = buf; in php_conv_fp()
396 memcpy(buf, p, *len + 1); in php_conv_fp()
399 return (buf); in php_conv_fp()
463 *len = s - buf; in php_conv_fp()
465 return (buf); in php_conv_fp()
1218 static void strx_printv(int *ccp, char *buf, size_t len, const char *format, va_list ap) /* {{{ */ in strx_printv() argument
1232 od.buf_end = &buf[len-1]; in strx_printv()
1233 od.nextb = buf; in strx_printv()
1249 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) /* {{{ */ in ap_php_slprintf() argument
1255 strx_printv(&cc, buf, len, format, ap); in ap_php_slprintf()
1259 buf[cc] = '\0'; in ap_php_slprintf()
1265 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap) /* {{{ */ in ap_php_vslprintf() argument
1269 strx_printv(&cc, buf, len, format, ap); in ap_php_vslprintf()
1272 buf[cc] = '\0'; in ap_php_vslprintf()
1278 PHPAPI int ap_php_snprintf(char *buf, size_t len, const char *format,...) /* {{{ */ in ap_php_snprintf() argument
1284 strx_printv(&cc, buf, len, format, ap); in ap_php_snprintf()
1290 PHPAPI int ap_php_vsnprintf(char *buf, size_t len, const char *format, va_list ap) /* {{{ */ in ap_php_vsnprintf() argument
1294 strx_printv(&cc, buf, len, format, ap); in ap_php_vsnprintf()
1299 PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap) /* {{{ */ in ap_php_vasprintf() argument
1308 *buf = NULL; in ap_php_vasprintf()
1311 if ((*buf = malloc(++cc)) != NULL) { in ap_php_vasprintf()
1312 if ((cc = ap_php_vsnprintf(*buf, cc, format, ap)) < 0) { in ap_php_vasprintf()
1313 free(*buf); in ap_php_vasprintf()
1314 *buf = NULL; in ap_php_vasprintf()
1323 PHPAPI int ap_php_asprintf(char **buf, const char *format, ...) /* {{{ */ in ap_php_asprintf() argument
1329 cc = vasprintf(buf, format, ap); in ap_php_asprintf()