Flags and Return Codes
When functions return an error flag, the result should always be checked.
FILE * fp = fopen("myData", "r"); // open file for readif (fp == 0) ... // handle error caseelse ... // handle correctly opened case
Previous slide
Next slide
Back to first slide
View graphic version