GetLastError() in linux

hi all
i am new in linux.
the GetLastError() function in windows returnes error code when calling
function fails . is there any equivalent methode exists in linux ?

i'm using g++ compiler & red hat linux .

thanks in advance.
errno is a global variable that stores the error code from the last system call.
Topic archived. No new replies allowed.