Re: fmtcheck.c
Re: fmtcheck.c
- Subject: Re: fmtcheck.c
- From: Steve Checkoway <email@hidden>
- Date: Fri, 1 Jul 2005 23:51:17 -0700
On Jul 1, 2005, at 7:36 PM, Peter Seebach wrote:
I have no spec for the $ syntax.
From the printf(3) man page:
An optional field, consisting of a decimal digit string
followed by a
$, specifying the next argument to access. If this field
is not pro-
vided, the argument following the last argument accessed
will be
used. Arguments are numbered starting at 1. If unaccessed
arguments
in the format string are interspersed with ones that are
accessed the
results will be indeterminate.
Er, what's %lf? %f takes a double, %Lf takes a long double. I don't
know of any purpose for %lf.
Again, from the man page:
Modifier a, A, e, E, f, F, g, G
l (ell) double (ignored, same behavior as without it)
L long double
It's supported. As for its utility...
It would probably be worth filing a bug report with Alan Briggs,
who has
a specific reason to care whether fmtcheck() is buggy.
Perhaps I'll do that.
Actually, I misspoke earlier when I said that the version in NetBSD
was the same as the one in Darwin. The one in NetBSD is newer in
that it correctly ignores the ' flag while the one in Darwin does not.
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden