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().
atoi()
strtod()
Comments are closed.
Recent Comments