Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil Clarify the history and add proper attribution.
details: https://anonhg.NetBSD.org/src/rev/8770ca09dc90
branches: trunk
changeset: 769173:8770ca09dc90
user: fair <fair%NetBSD.org@localhost>
date: Thu Sep 01 23:13:16 2011 +0000
description:
Clarify the history and add proper attribution.
diffstat:
lib/libutil/strpct.3 | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r cf30877338f4 -r 8770ca09dc90 lib/libutil/strpct.3
--- a/lib/libutil/strpct.3 Thu Sep 01 22:35:17 2011 +0000
+++ b/lib/libutil/strpct.3 Thu Sep 01 23:13:16 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: strpct.3,v 1.2 2011/08/28 17:21:28 wiz Exp $
+.\" $NetBSD: strpct.3,v 1.3 2011/09/01 23:13:16 fair Exp $
.\"
.\" Copyright (c) 2011 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -26,7 +26,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd August 28, 2011
+.Dd September 1, 2011
.Dt STRPCT 3
.Os
.Sh NAME
@@ -46,7 +46,8 @@
and
.Fa denominator
into a percentage representation with given number of digits of
-.Fa precision .
+.Fa precision
+without using floating point arithmetic.
.Sh RETURN VALUES
.Fn strpct
always returns a pointer to a NUL-terminated formatted string which
@@ -67,7 +68,9 @@
.Sh HISTORY
.Fn strpct
was originally implemented in
-.Xr csh 1 .
+.Xr csh 1
+for
+.Nx 1.3 .
It printed into a static buffer, was not locale aware, handled
.Ft unsigned long
numbers, and printed a
@@ -79,5 +82,7 @@
.Xr time 1
started using it.
.Fn strpct
-appeared in
+appeared separately in libutil for
.Nx 6.0 .
+.Sh AUTHORS
+.An Erik E. Fair Aq fair%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index