Incorrect warning about printf %0<fieldwidth>p format

Jim Avera
Thu May 8 16:03:00 GMT 2003

It actually says (and I think this is clear):
 "If a  precision is given with a numeric conversion 
 (d, i, o, u, x, and X), the 0 flag is ignored.  For 
 other  conversions, the behavior is undefined."

We are not talking about *precision*, but *min field width*.
These are two different parts of the format.

On Thu, 2003-05-08 at 05:10, Falk Hueffner wrote:
> Jim Avera <> writes:
> > Please explain.  The man text you quote says that the 0 flag has
> > undefined behavior for "other" conversions if a precision is
> > specified.
> No. It clearly says "For other conversions, the behavior is
> undefined".
> > In any case, the code is the truth: 
> No. The standard is the truth, and I cited the standard.

More information about the Gcc-bugs mailing list