#define SCNi16 "i" 

generic-integer scanf format for int16_t