bug-gnulib
[Top][All Lists]
Advanced

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

Printf for gnulib?


From: Daniel Jacobowitz
Subject: Printf for gnulib?
Date: Mon, 19 Feb 2007 17:42:01 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

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" :-).

My motivation is for GDB; we recently discussed adding support for
printing hex floating point, but the implementation relied on the
system's printf already having support for it.

Of course I'm pretty sure there are easier ways to solve that problem
than this one.  So if there's only lukewarm interest, I may do
something specific to hex float.  We already have routines to
decompose FP numbers.

-- 
Daniel Jacobowitz
CodeSourcery




reply via email to

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