summaryrefslogtreecommitdiffstats
path: root/lib/strtosize.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: add strtosize() functionKarel Zak2010-03-301-0/+148
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 <kzak@redhat.com>