When using mcpp as a library, it will throw a segmentation fault if you feed it an invalid filename, crashing whatever program is using it. This is due to it attempting to free the null pointer returned by a bad fopen call.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When using mcpp as a library, it will throw a segmentation fault if you feed it an invalid filename, crashing whatever program is using it. This is due to it attempting to free the null pointer returned by a bad fopen call.