Ulf Zibis wrote:

>
> I your code you supply negative width values to "*" format of
> printf(...). I nowhere found a documentation for this usage. They all
> say, the value should be non-negative. Do you know such a document?

In section 7.19.6.1 of C99 and section 7.21.6.1 of C11 :

"As noted above, a field width, or precision, or both,
may be indicated by an asterisk. In this case, an int
argument supplies the field width or precision. The
arguments specifying field width, or precision, or both,
shall appear (in that order) before the argument (if
any) to be converted. A negative field width argument
is taken as a - flag followed by a positive field width.
A negative precision argument is taken as if the
precision were omitted."

followed by :

"The flag characters and their meanings are:
- The result of the conversion is left-justified within
the field. (It is right-justified if this flag is not
specified.)"

Jean-Pierre


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to