#define SCNxFAST32 "lx" 

hexadecimal scanf format for uint_fast32_t