mirror of https://github.com/mkerrisk/man-pages
printf.3: Clarify details of the %n conversion specifier
See http://bugs.debian.org/756602 Reported-by: Jakub Wilk <jwilk@debian.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
8ee1a15c1b
commit
aacd17b1c1
|
@ -332,9 +332,7 @@ For other conversions, the behavior is undefined.
|
|||
.B \-
|
||||
The converted value is to be left adjusted on the field boundary.
|
||||
(The default is right justification.)
|
||||
Except for
|
||||
.B n
|
||||
conversions, the converted value is padded on the right with blanks, rather
|
||||
The converted value is padded on the right with blanks, rather
|
||||
than on the left with blanks or zeros.
|
||||
A
|
||||
.B \-
|
||||
|
@ -788,10 +786,14 @@ or
|
|||
.TP
|
||||
.B n
|
||||
The number of characters written so far is stored into the integer
|
||||
indicated by the
|
||||
.I "int\ *"
|
||||
(or variant) pointer argument.
|
||||
pointed to by the corresponding argument.
|
||||
That argument shall be an
|
||||
.I "int\ *",
|
||||
or variant whose size matches the (optionally)
|
||||
supplied integer length modifier.
|
||||
No argument is converted.
|
||||
The behavior is undefined if the conversion specification includes
|
||||
any flags, a field width, or a precision.
|
||||
.TP
|
||||
.B m
|
||||
(Glibc extension.)
|
||||
|
|
Loading…
Reference in New Issue