[opensource] uint64_t Question

Evan Powers powers.161 at osu.edu
Mon May 21 13:39:10 EDT 2007


On 5/21/07, Shaun Rowland <rowland at cse.ohio-state.edu> wrote:
> That's not true for strtol, and variants. It is true for atoi.

Sorry everyone, Shaun's right of course.

So, I change my recommendation to strtol() and friends, since they
report errors in a simple way (**endptr != '\0') and do something
well-defined when the conversion over/underflows. Who knows what
scanf() does.

- Evan


More information about the Opensource mailing list