Flags to control number parsing operations
#include <qvm/utils.h>
enum qvm_parse_num_flags {
QPNF_NONE = 0x00,
QPNF_ALLOW_SUFFIXES = 0x01,
QPNF_ALLOW_NEGATIVE = 0x02,
QPNF_ALLOW_TRAILING = 0x04,
QPNF_SIZE_CHECK = 0x08
};
No flags are specified.
Allow number to be scaled by "k", "m", "g", or "K", "M", "G" suffixes.
Allow a negative sign on the number.
Allow trailing characters following the number.
A maximum value is specified in the return parameter.
These flags control qvm_parse_num().