GetLastError() in linux

Feb 19, 2009 at 12:58pm
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.
Feb 19, 2009 at 2:27pm
errno is a global variable that stores the error code from the last system call.
Topic archived. No new replies allowed.