Robin2:
So someone tells you it is difficult to get to the South Pole and off you go because you don't believe him? Be my guest....R
Yes, because no one has said nor have I found a reason why it is difficult. Staying on topic.
I'm not sure the question is that hard. Allow me to rephrase. How do to detect the input char[] being passed to atoi() or atof() contains garbage and will not return a valid result? (ie., differentiate between valid 0 return because the data is 0 and a error 0 returned).