diff options
Diffstat (limited to 'libbb/xatonum.c')
-rw-r--r-- | libbb/xatonum.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbb/xatonum.c b/libbb/xatonum.c index 62bbe53..6f4e023 100644 --- 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 } +}; |