Re:Ratatoi is a C libary that wraps stdlib's strtol (as atoi...
by eqvinox on Thursday May 22, 2025 @01:01PM
(#44064067)
If strtol reliably sets errno to ERANGE, you're fine (you'll get a compiler warning for "if (aLong < INT_MIN || aLong > INT_MAX) {" though, because it can never be true.)
I have no idea what the cross-platform reliability of strtol() is, regarding errno. Should be fine, I hope.
I have no idea what the cross-platform reliability of strtol() is, regarding errno. Should be fine, I hope.