bug-gnulib
[Top][All Lists]
Advanced

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

Re: Printf for gnulib?


From: Bruce Korb
Subject: Re: Printf for gnulib?
Date: Mon, 19 Feb 2007 14:52:25 -0800
User-agent: Thunderbird 1.5.0.8 (X11/20060911)

Daniel Jacobowitz wrote:
> This is actually unrelated to my printf-args question from a couple
> of months ago - but I may be back to that depending on the answer.
> 
> Is there any interest in a full C99 printf in gnulib?  Right now,
> there's snprintf, vasnprintf, vasprintf, vsnprintf, and xvasprintf.
> The problem with these is that they punt to the system's underlying
> printf for some things.  That's an issue e.g. with Windows's %I64d
> versus %lld, and with C99 formats like %a.
> 
> If there is interest, I'm sure I'll have further questions (starting
> with "is there anyone who wants to do it for me" :-).

Gary Vaughan wrote an extensible printf library:
https://savannah.nongnu.org/projects/libsnprintfv/
that features the ability to register callback functions
for various formatting characters.  The extensions are
pretty easy.  My crucial requirement was to have an
argv style of interface, so for every "v*printf" interface,
this library also has a "*printfv" interface.

It isn't very active because it works pretty well (leastwise
for the way I use it).

Cheers -Bruce




reply via email to

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