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
qvm_parse_num_flags flags that control the parsing.
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.

Library:

Provided by qvm; no external library is required.

Description:

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

Note:

If you call this function after startup is complete, your guest system may terminate.

Returns:

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