qvm_parse_num_flags

Flags to control number parsing operations

Synopsis:

#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
};

Data:

QPNF_NONE

No flags are specified.

QPNF_ALLOW_SUFFIXES

Allow number to be scaled by "k", "m", "g", or "K", "M", "G" suffixes.

QPNF_ALLOW_NEGATIVE

Allow a negative sign on the number.

QPNF_ALLOW_TRAILING

Allow trailing characters following the number.

QPNF_SIZE_CHECK

A maximum value is specified in the return parameter.

Library:

Provided by qvm; no external library is required.

Description:

These flags control qvm_parse_num().