This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Extending vfprintf and family
- From: Russ Allbery <eagle at eyrie dot org>
- To: Philip Prindeville <philipp_subx at redfish-solutions dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 14 Aug 2014 11:45:07 -0700
- Subject: Re: Extending vfprintf and family
- Authentication-results: sourceware.org; auth=none
- References: <6B382F29-D813-41AA-ADA1-EDF9EE541704 at redfish-solutions dot com>
Philip Prindeville <philipp_subx@redfish-solutions.com> writes:
> When I was at Cisco in the IOS group, there was a way to register
> on-the-fly additional format specifiers that *printf() could then
> leverage; some of the formatting helpers were quite sophisticated,
> understanding ASN.1 or X.509 certs, etc. Not sure we need to be that
> complex, though I wouldnât reject it if it were offered, either.
glibc supports exactly this. See:
https://www.gnu.org/software/libc/manual/html_node/Customizing-Printf.html#Customizing-Printf
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>