osdGetLastError
osdGetLastError
osd
1998 12-05
NAME
osdGetLastError - get the number of the last error
SYNOPSIS
OSD_ERRNO_T osdGetLastError(void)
osdGetLastError() returns the OSD_ERRNO_T for the last error.
If no error has been encountered, this will probably be zero.
However, some operating
systems seem to use their global error mechanism internally
without cleaning it up at times.
Therefore,
this function may return a non-zero value even if there has not been an
error.
Because of this, osdGetLastError() should not be used to determine
if an error has occurred, but should be used to determine what an error is
after it has been determined there has in fact been an error.
Typically, the return value of a function will indicate whether or not there
has been an error.
This function is equivalent to accessing the global value OSD_ERRNO
which is of type OSD_ERRNO_T.
The last error number.