Versions Compared

Key

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

...

In this example, fopen() is used to open a file for reading. If fopen() is unable to open the file it returns a NULL null pointer. Failing to detect and properly handle this error condition appropriately can lead to abnormal and abrupt program termination.

...