September 25, 2016

errno variable

□ Global variable that stores the cause of a error when a function is executed

□ Return value can only check whether an error occurred

□ If there is no error, 0 is stored. If there is an error, error code is stored

□ Error code is stored in the path /usr/include/asm/errno.h

□ #include<errno.h> is needed to use errno variable