Error Conditions Indicated by errno
- Updated2023-02-21
- 1 minute(s) read
Error Conditions Indicated by errno
Some of the ANSI C Library functions report error codes as return values and many ANSI C functions set the errno global variable to indicate specific error conditions. Generally, the functions do not clear errno when they return successfully. The possible values of errno are declared in \include\ansi\errno.h. A base set of values exists that is common to all platforms, and additional values are specific to particular platforms. To learn more about these values, you can consult a publication such as C: A Reference Manual cited in the Related Documentation section of this help file. Also, you can use the LabWindows/CVI function panel help to determine the error conditions that can occur in each function.
You can call the Windows SDK function GetLastError to obtain system-specific information when LabWindows/CVI sets errno to one of the following values:
EACCES
EBADF
EIO
ENOENT
ENOSPC