gcc 4.4.2
I was reading an article about scanf. I personally have never checked the return code of a scanf.
#include int main(void)
I make a loop call fgets until the end of the line is read, and then call sscanf to parse the data. It's a good idea to check whether sscanf reaches the end of the input line.