Assigning unsigned char* buffer to a string
- by CPPChase
This question might be asked before but I couldn't find exactly what I need.
My problem is, I have a buffer loaded by data downloaded from a webservice. The buffer is in unsigned char* form in which there is no '\0' at the end. Then I have a poco xml parser needs a string.
I tried assigning it to string but now I realized it would cause problem…