Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2007 06:19:12 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libutil Makefile expand_number.3 expand_number.c libutil.h
Message-ID:  <200709010619.l816JClw066838@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2007-09-01 06:19:11 UTC

  FreeBSD src repository

  Modified files:
    lib/libutil          Makefile libutil.h 
  Added files:
    lib/libutil          expand_number.3 expand_number.c 
  Log:
  Implement expand_number(3), which is the opposite of humanize_number(3), ie.
  a number in human-readable form is converted to int64_t, for example:
  123b -> 123
  10k -> 10240
  16G -> 17179869184
  
  First version submitted by:     Eric Anderson <anderson@freebsd.org>
  Approved by:    re (bmah)
  
  Revision  Changes    Path
  1.66      +3 -3      src/lib/libutil/Makefile
  1.1       +84 -0     src/lib/libutil/expand_number.3 (new)
  1.1       +89 -0     src/lib/libutil/expand_number.c (new)
  1.45      +1 -0      src/lib/libutil/libutil.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709010619.l816JClw066838>