LemonBoy/bar — pull request #35 by freestyl3r (2014-02-04 20:47:22+00:00)
Title: Silence the warning about not checking fgets return value

Break the loop if fgets returns NULL (that means an EOF)
That way an infinite loop is avoided with malformed input as well. 2 examples:
`touch test_file`
`./bar < test_file`

`./bar << EOF`
`EOF`

The 2nd patch is purely cosmetic but you may not want it if you are interested in keeping git blame clean.