Am 11.04.2016 um 11:50 schrieb Jean-Pierre André:
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.)"

Much thanks. This is what I already found.

I now see, I was irritated. Because
printf("%*c", -4, ' ') fills in 4 blanks, I assumed
printf("%*c", -4, '#') is a trick to fill in 4 '#'.
So I was wondering, why I couldn't find a docu how to fill a range with same 
chars with printf().

Sorry for the noise.

-Ulf


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
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!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to