Iceman2005
Programmer
okay, this is driving me nuts...
how do i convert a multibyte binary char* string into an std string?
i have two function that returns an...
char* function();
unsigned char* function();
how do i assign them to an std::string ???
it doesnt seem to copy it since the char* may contain multibyte binary data with null in the middle everywhere.
i tried with...
std::string ss = function();
this does not work.
i also tried with....
this seemed to work with char* sometimes.....
for (i = 0; i < length; i++)
ss += buffer;
So guys, what is the CORRECT way to assign a binary char* or unsigned char* into an std::string????
thanks.
iceman
how do i convert a multibyte binary char* string into an std string?
i have two function that returns an...
char* function();
unsigned char* function();
how do i assign them to an std::string ???
it doesnt seem to copy it since the char* may contain multibyte binary data with null in the middle everywhere.
i tried with...
std::string ss = function();
this does not work.
i also tried with....
this seemed to work with char* sometimes.....
for (i = 0; i < length; i++)
ss += buffer;
So guys, what is the CORRECT way to assign a binary char* or unsigned char* into an std::string????
thanks.
iceman