#Scanf trouble
07-Apr-93 15:41:23
Sb: #33970-#Scanf trouble
Fm: michael heinz 71133,76
To: Henry Williams 73527,1446
The main problem with scanf is that it considers a carriage return to be white
space, rather than an input terminator.
In my programs, I always use fgets to read one line, then use sscanf to parse
that line – that way I get scanf's power without it's habit of reading too far
ahead.
I would avoid strtok unless you need to get really fancy.