Avoid Atoi() And Similar Functions

Avoid Atoi() And Similar Functions

Avoid atoi() and related functions: they do not distinguish between invalid input and a valid “0″ string. Use functions which properly report errors, such as strtod().