add "scan helper getc" and rework strtod, etc. to use it