new scanf implementation and corresponding integer parser/converter