projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libarchive: open_zipped() does not need to check extensions for e.g. gzip
[oweals/busybox.git]
/
libbb
/
xatonum.c
diff --git
a/libbb/xatonum.c
b/libbb/xatonum.c
index 62bbe53e7198da50cdbf1507626c7242fcf33567..6f4e023bbc166de84cadcc6e0bc38afdc8ff325d 100644
(file)
--- a/
libbb/xatonum.c
+++ b/
libbb/xatonum.c
@@
-68,3
+68,10
@@
uint16_t FAST_FUNC xatou16(const char *numstr)
{
return xatou_range(numstr, 0, 0xffff);
}
+
+const struct suffix_mult bkm_suffixes[] = {
+ { "b", 512 },
+ { "k", 1024 },
+ { "m", 1024*1024 },
+ { "", 0 }
+};