qvm_parse_num()

Parse a number from a character string

Synopsis:

#include <qvm/utils.h>
char* qvm_parse_num(const char *str,
                    enum qvm_parse_num_flags flags,
                    uint64_t *nump)

Arguments:

str
A pointer to the character string containing a number to be converted.
flags
Flags that control the parsing (see qvm_parse_num_flags).
nump
A pointer to a location to store the converted number; if you specify QPNF_SIZE_CHECK the limit is expected in the location referenced by nump.

Description:

You can use decimal or hexadecimal notation for your numeric values (see strtoul()) in the C Library Reference).

CAUTION:

If it encounters an error, this function terminates the qvm process; it should never be used after startup is complete.

Returns:

A pointer to the first character following the number that was converted.