httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Brown <>
Subject Re: rprintf()
Date Fri, 17 May 1996 20:26:51 GMT

Rasmus notes:

    Without vsnprintf() it is extremely tricky to build a safe varargs
    printf function.

You may be able to adapt some code I wrote for the FastCGI
library.  See FCGX_VFPrintF in fcgiapp.c, which does a varargs
printf by interpreting the format string and calling sprintf.
It was amusing to figure out the buffering required, e.g.
for %f.


View raw message