#define SCNdLEAST32 "ld" 

decimal scanf format for int_least32_t