how to convert printf dword in a loop into a string in c++

  • Thread starter Thread starter Shahzaib17
  • Start date Start date
S

Shahzaib17

Guest
below is the code which is producing a md5 hash but its printing it and i want to store it in a char array or more preferably in a string

for (DWORD i = 0; i < cbHash; i++)
{
printf("%c%c", rgbDigits[rgbHash >> 4],
rgbDigits[rgbHash & 0xf]);
}

//rgbHash is of BYTE type

//rgbDigits is of CHAR type

how can i store above printf() value in a string?

Continue reading...
 
Back
Top