--- In [email protected], "johnmatthews2000" <jm5...@...> wrote:
> If fgets() on a FILE* returns [null] indicating end-of-file,
> is it safe to call it again?

Yes.

> That is, is it guaranteed that the function will return [null]
> again

No.

> with no undesirable side effects?

All standard input functions are based on fgetc. Under C99,
end of file is 'sticky', under C89 it's unspecified. Either way,
you should call clearerr() before attempting to read again.

-- 
Peter

Reply via email to