|Re: External functions using universal charstrings [message #1831069 is a reply to message #1831068]
||Tue, 11 August 2020 06:45
| Olaf Bergengruen
Registered: November 2018
Thanks , Gabor again.|
Since v_XMLDOC_oct is not NULL terminated, I had to do additional work, which resulted in following code, which may not be the best, but it works.
OCTETSRTING v_XMLDOC_oct = unichar2oct(p_XMLDoc);
size_t v_XMLDoc_len = v_XMLDOC_oct;.lengthof();
// Prepare v_XMLDoc
v_XMLDoc = (char *) calloc( v_XMLDoc_len + 1, 1); // Allocate memory and init to 0
memcpy((char *) v_XMLDoc, (const char *) (const unsigned char*) tmp_oct1, v_XMLDoc_len);
// Do the work
// Don't forget
So, now it is done, at least for the moment.
Powered by FUDForum
. Page generated in 0.02644 seconds