I want to print some pointer value of unsigned char
type.
For example:
int i = 0;
unsigned char buffer[32] = {0x00, };
(execute some operations..)
for(i = 0 ; i < 32; i++)
{
printf("%x", buffer[i]);
}
The pointer named buffer
is a result that execute operations. I had tried some ways for resolving this problems, but I can't.
The code changed "%x"
to "%llu"
, "%lu"
, "%zu"
, "%zx"
, "%hhx"
etc..
This code is well at 32bit Linux platform(CentOS8).
For hexadecimal print, How can I do ?