The Win32 call equivalant to reading errno. There is also SetLastError().

I'm guessing the reason they did this in two functions rather than a global variable is to be thread safe. A different solution to this problem is -D_REENTRANT.

Log in or registerto write something here or to contact authors.