Concept Flow - Using errno
Start program
Call function that may fail
Check if function failed
Yes
Read errno value
Use errno to identify error
Handle error or continue
End program
The program calls a function that might fail, then checks errno to find out what error happened, and handles it accordingly.