Name

ap_psprintf — format a string

Synopsis

char *ap_psprintf(pool *p, const char *fmt, ...)

Much the same as the standard function sprintf() except that no buffer is supplied; instead, the new string is allocated in p. This makes this function completely immune from buffer overflow. Also see ap_vformatter().