I have a pointer which point to a memory of 20 bytes, and then copy something to the memory
u_char* pkt=malloc(20);
memcpy(pkt, somecontent, 20);
I want to examine the 20 bytes starting from pkt
so I want to print all the bytes with a format like 0xa6
how to do this in language C
thanks!