Autor: Michael Haardt Data: A: exim-users Assumpte: Re: [exim] Quota over 2GB supported?
On Thu, Jun 09, 2005 at 01:57:42PM +0100, Philip Hazel wrote: > > Since Exim uses mostly string_sprintf(), perhaps it is time for
> > its own *printf implementation instead of internally using libc.
>
> I do not trust myself to write such code in a way that is as efficient
> and numerically accurate as the standard library. Especially not for
> floating point formats.
For specific formats, you could still call libc. Just pass it the numeric
format, when encountering one, and process the rest on your own. I like
being able to print a sockaddr_*, no matter if it is a domain socket,
IPv4 or IPv6, besides off_t, without having to use string concatenation
all the time.