Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Nov 2022 00:46:37 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b37c1241fee1 - stable/13 - strfmon(3): Fix # explanation
Message-ID:  <202211010046.2A10kbdK042164@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=b37c1241fee1921dd752375cc925195b7a0fcce8

commit b37c1241fee1921dd752375cc925195b7a0fcce8
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2022-10-13 16:11:31 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-11-01 00:44:42 +0000

    strfmon(3): Fix # explanation
    
    (cherry picked from commit 7cfd67ce96d97c263c2c56c5c437426463467689)
---
 lib/libc/stdlib/strfmon.3 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lib/libc/stdlib/strfmon.3 b/lib/libc/stdlib/strfmon.3
index d6dcf693b80e..27dbbe49071f 100644
--- a/lib/libc/stdlib/strfmon.3
+++ b/lib/libc/stdlib/strfmon.3
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd June 25, 2012
+.Dd October 26, 2022
 .Dt STRFMON 3
 .Os
 .Sh NAME
@@ -98,7 +98,13 @@ By default, there is no minimum width.
 A
 .Sq Cm #
 sign followed by a decimal number specifying the maximum
-expected number of digits after the radix character.
+expected number of digits before the radix character.
+When this option is used, values that do not exceed the
+specified number of digits are formatted so they will be
+correctly aligned with other values printed using the same
+format.
+This includes always leaving space for a possible sign
+indicator, even if none is needed for a particular value.
 .It
 A
 .Sq Cm \&.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211010046.2A10kbdK042164>