Subject: Re: Linux's printf() extensions
To: Lucio de Re <firstname.lastname@example.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 09/22/1998 23:57:09
> Linux (apparently) allows qualifiers of the form "$n", where "n" is a
> number to specify a different sequence in which the printf()
> arguments are to be output.
Not just Linux. I saw this on some vendor OS too (Solaris? I forget),
which makes me suspect it's actually a part of some standard.
> Has anyone seen this facility ported to NetBSD?
Not me. Speaking as someone who basically reimplemented the guts of
printf a while ago, it would be nontrivial to do, and impossible in
some situations (for example, if $n is not used by the format, it's not
possible to handle $m correctly for m>n...unless certain
architecture-specific assumptions hold - assumptions which fail on many
The reimplementation I referred to is one that I can make available.
If anyone wants to pay me to add $n support to it... :-)
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B