Quote Originally Posted by marque View Post
use atoi() standard function.
atoi() is insufficient.

atoi("xxc") will return zero, true. So will atoi("0").

Furthermore, atoi("22x") will return 22, not zero.