bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] Re: snprintf


From: Bruno Haible
Subject: Re: [Bug-gnulib] Re: snprintf
Date: Fri, 1 Oct 2004 15:26:03 +0200
User-agent: KMail/1.5

Simon Josefsson wrote:
>       * snprintf.c (snprintf): Handle size==0.

Applied.

> >  - Why do you let vasnprintf allocate the entire string if, afterwards,
> >    you only need size bytes of it? You could already tell vasnprintf
> >    to produce less memory.
>
> How?

Oops, I was wrong. It's the other case that you can optimize: Avoid
malloc() and free() when the result will have less than size bytes.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]