|
errnomacro
<cerrno> int Last error number This macro expands to a modifiable lvalue of type int, therefore it can be both read and modified by a program.errno is set to zero at program startup, and certain functions of the standard C library modify its value to some value different from zero to signal some types of error. You can also modify its value or reset to zero at your convenience. The same header that declares errno (<cerrno>) also declares at least the following two macro constants with values different from zero:
In C++, errno is always declared as a macro, but in C compilers it may also be implemented as an int object with external linkage.
|