Main index | Section 3 | Options |
#include <libutil.h>
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 |
[EINVAL] | |
The given string contains no digits. | |
[EINVAL] | |
An unrecognized suffix was given. | |
[ERANGE] | |
Result doesn't fit into 64 bits. | |
EXPAND_NUMBER (3) | July 20, 2019 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | If it wasn't for C, we'd be using BASI, PASAL and OBOL | ” |