Capture any fgets results/errors

return 0 for EOF, -1 for error as far as I can tell from the translation of the description.