Re:A Soccer Con Man Who Couldn't Play the Game
by MaulingMonkey on Wednesday August 24, 2016 @02:26AM
(#12350117)
> atoi in fact invokes undefined behavior in out of range situations
Ouch! TIL. You'd think by now I wouldn't be surprised by such things, and yet, somehow I was...
I'd tend to make this re-rolled atoi a wrapper around strtol/wcstol.