Reads a string data from the bdata_ptr
and moves the bdata_ptr
after that string.
If the string cannot be read, then the default_value
is returned instead and the bdata_ptr
is left unchanged.
The string might be previously stored with the util_bdata_put_string.
bdata_ptr |
a backend specific data (bdata) pointer |
default_value |
a value to return, when no data can be read |
Newly allocated string, which was read, or dupped the |