site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com In message <52254B38-0B27-4C33-905D-7C8ACA97F25E@cs.washington.edu>, Steve Chec koway writes:
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.
Hmm. I suppose it makes sense to extend fmtcheck, if printf is to be extended.
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...
The man page is a little misleading on that. 'f' means double, 'l' is not a modifier, on any of the floating point types.
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.
It's probably more actively maintained; the ideal thing might be to get it debugged there, then import it "to track improvements in NetBSD", because it'll be politically easier. :) -s _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com