Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib Fix obvious typo (cut&pasto or whatever) - t...



details:   https://anonhg.NetBSD.org/src/rev/f39f738c4ea1
branches:  trunk
changeset: 358004:f39f738c4ea1
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Dec 07 22:19:17 2017 +0000

description:
Fix obvious typo (cut&pasto or whatever) - there's only one value that
specifies the number of digits after the decimal point (oh, sorry, the
"radix character") the other specifies the number before...

While here, add a little more info on the effects of using the #n value.

diffstat:

 lib/libc/stdlib/strfmon.3 |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r bddb1a5b94b6 -r f39f738c4ea1 lib/libc/stdlib/strfmon.3
--- a/lib/libc/stdlib/strfmon.3 Thu Dec 07 21:53:41 2017 +0000
+++ b/lib/libc/stdlib/strfmon.3 Thu Dec 07 22:19:17 2017 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: strfmon.3,v 1.7 2017/08/16 17:41:36 wiz Exp $
+.\"    $NetBSD: strfmon.3,v 1.8 2017/12/07 22:19:17 kre Exp $
 .\"
 .\" Copyright (c) 2001 Jeroen Ruigrok van der Werven <asmodai%FreeBSD.org@localhost>
 .\" All rights reserved.
@@ -26,7 +26,7 @@
 .\"
 .\"    From: FreeBSD: Id: strfmon.3,v 1.7 2003/01/06 06:21:25 tjr Exp
 .\"
-.Dd August 15, 2017
+.Dd December 7, 2017
 .Dt STRFMON 3
 .Os
 .Sh NAME
@@ -102,7 +102,13 @@
 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 \&.



Home | Main Index | Thread Index | Old Index