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