I searched char* to hex string before but implementation I found adds some non-existent garbage at the end of hex string. I receive pa
char*
hex
Supposing data is a char*. Working example using std::hex:
for(int i=0; i
Or if you want to keep it all in a string:
std::stringstream ss; for(int i=0; i