Trying to figure out how to read a string that's been input in a scanf (using iteration to deal with spaces) and use isdigit to count the number of digits in the string.
One of the problems I'm running up against is that the rules for what is to be considered an integer is as follows.
1 (singe digit surrounded by spaces) will be considered 1 integer
127 (multiple digits surrounded by spaces) will be considered 1 integer
1a89 (anything alphanumeric) will not be considered an integer
whenever I use isdigit to point to a particular place it of course only looks at a single character in the array. How would I have it look at "blocks" of information instead?
thanks for any help or education