More error handling
More error handling
Recap
errno.h : declares a global variable errno that stores an integer that encodes errors.
Many processes automatically write errors to errno if defined.
Notable example: fopen
Exit() terminates the calling process and returns a signal.
EXIT_SUCCESS -> Macro for process exiting successfully.
EXIT_FAILURE -> Macro for process failing
Example
Assert
Assert statements are a wonderful way to debug your code.
The function
Checks the validity of an expression.
If false it exits the program and gives an error message.
Example
Setting debug mode
/docProps/thumbnail.jpeg