How to check for eof in file pointers?

in fstreams you have eof() member function. how to check for end of file when reading from a FILE *?
I believe it sets the global errno to eof or something (go look up the where to get it, I don't know where).
Topic archived. No new replies allowed.