httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: pre-patch: struct sockaddr_in error messages
Date Sat, 25 Oct 1997 15:34:32 GMT
On Fri, Oct 24, 1997 at 06:10:27PM -0700, Dean Gaudet wrote:
> Oh, BTW, %S can't be used because it's the posix way of specifying a
> wchar_t *, which is why gcc was complaining to me. 
..and because would non-standard (taking two va_args() instead of one).

> We can replace both of these, and skirt the ap_snprintf debate, with a
> single core routine:
> 
>     int vformatter(int (*write_func)(void *data, const void *buf, size_t len),
> 		    void *data, const char *format_string, va_list ap);
> 
> Which will naturally have a wrapper:
> 
>     int formatter(int (*write_func)(void *data, const void *buf, size_t len),
> 		    void *data, const char *format_string, ...);

Yes, that sounds sensible/reasonable, +1 too, like Ben.
Internally, it could even use snprintf for the "standard" formats ;-)

    Martin
-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message