...
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.
...