]> err.no Git - varnish/commit
Add a str2bytes() function which converts byte size strings to
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 8 Jan 2008 09:42:29 +0000 (09:42 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 8 Jan 2008 09:42:29 +0000 (09:42 +0000)
commit53fec36e83843573deccff50c615b32d77a6cbfe
tree28183d46cfe28d8b489699ae5e83f8a1b3f77126
parent351230ca487fa32926963070aecd8c4b05a8b09b
Add a str2bytes() function which converts byte size strings to
number of bytes.

In difference from for instance FreeBSD's relatively newly added
expand_number(), this function also takes floatingpoint specifications
like "1.5T".

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2331 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/include/libvarnish.h
varnish-cache/lib/libvarnish/Makefile.am
varnish-cache/lib/libvarnish/num.c [new file with mode: 0644]