cvs commit: src/lib/libutil Makefile expand_number.3
expand_number.c libutil.h
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Aug 31 23:19:12 PDT 2007
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 at 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
More information about the cvs-src
mailing list