parse_to_int_in_C whitespaces aren't ignored. A more effective way to handle possible errors in parsing text to a number.