OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Ian Darwin (iancvs.openbsd.org)
Date: Wed May 14 2003 - 20:26:26 CDT


CVSROOT: /cvs
Module name: src
Changes by: iancvs.openbsd.org 2003/05/14 19:26:26

Modified files:
        lib/libutil : Makefile shlib_version util.h
Added files:
        lib/libutil : fmt_scaled.3 fmt_scaled.c

Log message:
New: fmt_scaled() and scan_scaled() convert to and from "human readable"
or scaled numbers. fmt_scaled, and the format, based on Ken Stailey's
code for "df -h"; scan_scaled is new. Significantly commented on
and reworked by pjanzen; other comments from millert. OK pjanzen.