I am trying to determine if these floats are properly formatted. I created a function that is designed to increment ctr if the float contains either a digit or a '.' and increment ctr1 if it is anything else but my counters are not counting properly. I was wondering if any one had any suggestions.
thanks
isn't it saying that if buffer [x] is either a digit or a '.' then increment ctr?
No, it is saying 'if the current character is a is a digit, or if the period character value does not equal zero, then blah'. The period character is, of course, not equal to zero, so the condition is always true.