Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

C99, Section 7.19.7.2, "The fgets() function", paragraph 3 says

The fgets function returns s if successful. If end-of-file is encountered and no characters have been read into the array, the contents of the array remain unchanged and a null pointer is returned.

...