#define SCNiPTR SCNi16 

generic-integer scanf format for intptr_t