If you carefully look at this example you will see with atoi when it runs into a string it gives the integer value of 0. So I was wondering how you tell the difference between the integer value of 0 and a string that got converted to 0.
http://www.tutorialspoint.com/c_standard_library/c_function_atoi.htm