#define SCNxPTR SCNx16 

hexadecimal scanf format for uintptr_t