glibc printf pointers like so: printf("%5p",(void *) 0x7b) gives you 0x7b. That is, no minimum width, no zero-padding by default, and with space-padding before the 0x. We do use a minimum width based on the size of pointers and we zero-pad (except for NULL). Should we switch to the way gcc does it?
glibc printf pointers like so:
printf("%5p",(void *) 0x7b)gives you0x7b. That is, no minimum width, no zero-padding by default, and with space-padding before the0x. We do use a minimum width based on the size of pointers and we zero-pad (except for NULL). Should we switch to the way gcc does it?