atoi() — string to int
c
Solution
It does say on Apple's Mac OS X Manual Page for atoi(3) (and in the BSD man pages too) that `atoi` has been deprecated.
The atoi() function has been deprecated by strtol() and should not be used in new code.
I would use the `strtol()` equivalent just for that reason, but i doubt you have to worry about `atoi()` being removed.
from http://www.codecogs.com/library/computing/c/stdlib.h/atoi.php Implementation Notes
* The atoi function is not thread-safe and also not async-cancel safe.
* The atoi function has been deprecated by strtol and should not be used in new code.
Problem
I read that `atoi()` is deprecated and that it is equivalent to: ``` (int)strtol(token_start, (char **)NULL, 10); ``` Does that mean I should use the above instead of `atoi(chr)` or is it just saying they are equivalent?