Parsing integers using buffer methods instead of old ctype lib