Re: fmtcheck.c
Re: fmtcheck.c
- Subject: Re: fmtcheck.c
- From: email@hidden (Peter Seebach)
- Date: Sat, 02 Jul 2005 04:07:14 -0500
In message <email@hidden>, 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden