If I create a void pointer, and malloc a section of memory to that void pointer, how can I print out the individual bytes that I just allocated?
For example:
void * p;
p = malloc(24);
printf("0x%x\n", (int *)p);
I would like the above to print the 24 bytes that I just allocated.