In C, I\'d like to use printf to display pointers, and so that they line up properly, I\'d like to pad them with 0s.
My guess was that the proper way to do this was:
#include
printf("%016" PRIxPTR "\n", (uintptr_t)ptr);
but it won't print the pointer in the implementation defined way (says DEAD:BEEF for 8086 segmented mode).
DEAD:BEEF