Patch to add snprintf/vsnprintf to libiberty

Paolo Carlini
Fri Jun 14 03:31:00 GMT 2002

Alexandre Oliva wrote:

>On Jun 14, 2002, Paolo Carlini <> wrote:
>>Hi. I'm not sure to understand what you are saying.
>I just mean that, if you intended to use snprintf unconditionally and
>depend on its behavior matching exactly that of C99, using the
>libiberty version would be a better option than assuming that snprintf
>as implemented by any random OS would behave exactly as specified in
>C99.  Should the OS implementation diverge from the behavior expected
>by libstdc++-v3, Bad Things (TM) might happen.
I see. Therefore we both agree that Kaveh's work is really very nice!

I look forward to see it integrated (together with the corresponding v3 
configury bits).

Ciao, thanks, Paolo.

More information about the Gcc-patches mailing list