Module Name: src Committed By: kre Date: Thu Dec 7 22:19:17 UTC 2017
Modified Files: src/lib/libc/stdlib: strfmon.3 Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/lib/libc/stdlib/strfmon.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/stdlib/strfmon.3 diff -u src/lib/libc/stdlib/strfmon.3:1.7 src/lib/libc/stdlib/strfmon.3:1.8 --- src/lib/libc/stdlib/strfmon.3:1.7 Wed Aug 16 17:41:36 2017 +++ src/lib/libc/stdlib/strfmon.3 Thu Dec 7 22:19:17 2017 @@ -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 <asmo...@freebsd.org> .\" 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 @@ 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 \&.