char [255] into char[16] with hex [closed]

  c++, string

can someone explain how can I get hash sum in hex into result variable out of output?

unsigned char output[EVP_MAX_MD_SIZE];

...

char result[16];
for (int i = 0; i < output_len; ++i)
     sprintf(result+i, "%02X", output[i]);

Source: Windows Questions C++

LEAVE A COMMENT