Module Name: src Committed By: fair Date: Thu Sep 1 23:13:16 UTC 2011
Modified Files: src/lib/libutil: strpct.3 Log Message: Clarify the history and add proper attribution. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/libutil/strpct.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/libutil/strpct.3 diff -u src/lib/libutil/strpct.3:1.2 src/lib/libutil/strpct.3:1.3 --- src/lib/libutil/strpct.3:1.2 Sun Aug 28 17:21:28 2011 +++ src/lib/libutil/strpct.3 Thu Sep 1 23:13:16 2011 @@ -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 f...@netbsd.org