qvm_parse_num()
Parse a number from a character string
Synopsis:
#include <qvm/utils.h>char* qvm_parse_num(const char *str,
qvm_parse_num_flags_t flags,
uint64_t *nump)Arguments:
- str
- A pointer to a string containing a number to be converted.
- flags
- A bitfield of QPNF_* flags that control the parsing.
- nump
- A pointer to a location for storing the converted number. If you set the QPNF_SIZE_CHECK flag, the maximum limit is expected to be specified in this location.
Description:
This function parses a number from a given character string. 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, so the function should never be used after startup is
complete.
Returns:
A pointer to the first character following the number that was converted.
Page updated:
