E
Eric Kaplan
I have a function that will take char buffer and dump all data into a
file.
How can I replace all
<givenname xsi:nil='true'/>
with
<givenname>.</givenname>
=============================
int my_block_reader(void *userdata, const char *buf, size_t len)
{
char *szBuffer = new char[len + 1];
memcpy(szBuffer, buf, len);
szBuffer[len] = 0;
dumpfile << szBuffer;
delete[] szBuffer;
return 0;
}
file.
How can I replace all
<givenname xsi:nil='true'/>
with
<givenname>.</givenname>
=============================
int my_block_reader(void *userdata, const char *buf, size_t len)
{
char *szBuffer = new char[len + 1];
memcpy(szBuffer, buf, len);
szBuffer[len] = 0;
dumpfile << szBuffer;
delete[] szBuffer;
return 0;
}