This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Libiberty's snprintf for v3 vs. libsnprintfv
- From: Bruce Korb <bkorb at veritas dot com>
- To: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 22 Apr 2003 15:34:07 -0700
- Subject: Re: Libiberty's snprintf for v3 vs. libsnprintfv
- Reply-to: bkorb at veritas dot com
Hi,
This library: http://savannah.nongnu.org/projects/libsnprintfv/
was written by Gary V. Vaughn with help from Paolo Bonzini and
myself with the intention of having it incorporated into libiberty
someday. It has every variation of printf functionality I've
ever heard of, plus some convenient extensions. I don't think
you'll have any licensing issues there, either. Some online
blurbs:
http://www.gnu.org/manual/autogen/html_node/autogen_310.html#SEC310
http://gcc.gnu.org/ml/gcc-patches/2002-06/msg01605.html
((The tidying has mostly been done now.))
the README:
This is libsnprintfv, a portable, extensible reimplementation of the
POSIX format printing API. libsnprintfv provides all the features
which should be present in a POSIX format printing implementation,
but which often are not, such as guaranteed return of number of
characters printed and support for %n$ format specifiers.
In addition the the POSIX features, libsnprintfv also provides some
extensions to the API, and a GNU glibc-2 compatible printf custom
format specifier, all of which you can use with impunity if you link
with libsnprintfv, rather than worrying about whether the target C
library provides the extensions. See the info manual for details of
the API calls available, and an explanation of how to write custom
specifier handlers.
The latest version of libsnprintfv is available from savannah.nongnu.org
See the file INSTALL for instructions on how to build and install
libsnprintfv.
See the file NEWS for a description of user visible changes to
libsnprintfv between releases.
See the file TODO for a list of outstanding work.
If you have any suggestions or bug reports, please send email to the
author at <gary at gnu dot org>.