qvm_parse_block()
Parse a string to populate a structure that describes a data element
Synopsis:
#include <qvm/utils.h>char* qvm_parse_block(const char *str,
struct qvm_state_block *bp)Arguments:
- str
- A pointer to a string containing the location to be parsed.
- bp
- A pointer to a qvm_state_block structure for storing the parsed information.
Description:
The qvm_parse_block() function
parses the given character string and populates the given structure.
The string should be formatted as follows:
[type:]location
You can set a default type by pre-populating the qst_type field in the structure referenced by bp. However, if you explicitly specify type in the string, this type will override your pre-populated default type.
CAUTION:
If you call this function after startup is complete, your guest system
may terminate.
Returns:
A pointer to the first character following the parsed location.
Page updated:
