From cf8de26afe0db5c330f4c913d736dc1f840add88 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 30 Mar 2010 13:47:33 +0200 Subject: lib: add strtosize() function This function int strtosize(const char *str, uintmax_t *res) supports {K,M,G,T,E,P}iB and {K,M,G,T,E,P}B suffixes. Signed-off-by: Karel Zak --- tests/commands.sh.in | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/commands.sh.in') diff --git a/tests/commands.sh.in b/tests/commands.sh.in index 8399738c8..f52a68687 100644 --- a/tests/commands.sh.in +++ b/tests/commands.sh.in @@ -10,6 +10,7 @@ TS_HELPER_BYTESWAP="$TS_TOPDIR/helpers/test_byteswap" TS_HELPER_MD5="$TS_TOPDIR/helpers/test_md5" TS_HELPER_ISMOUNTED="$TOPDIR/lib/test_ismounted" +TS_HELPER_STRTOSIZE="$TOPDIR/lib/test_strtosize" # TODO: use partx TS_HELPER_PARTITIONS="$TOPDIR/shlibs/blkid/samples/partitions" -- cgit v1.2.3-55-g7522