The
expand_number()
function parses the
buf
string and stores a unsigned 64-bit quantity at
*num.
The
expand_number()
function
is case-insensitive and
follows the SI power of two convention.
The suffixes are:
| Suffix | Description | Multiplier |
| K | kilo | 1024 |
| M | mega | 1048576 |
| G | giga | 1073741824 |
| T | tera | 1099511627776 |
| P | peta | 1125899906842624 |
| E | exa | 1152921504606846976 |
For historical reasons, the
expand_number()
function accepts and ignores a single
"B"
suffix at the end of the
buf
string.
However, the usage of this suffix is discouraged.