Each of the macros defined in<errno.h> expands to an integer constant expression with typeint and with a unique positive value. The following constants are defined by ISO C. The implementation may define more, as long as they begin with'E' followed by digits or uppercase letters.
Defined in header <errno.h> | |
EDOM | Mathematics argument out of domain of function (macro constant) |
EILSEQ (C95) | Illegal byte sequence (macro constant) |
ERANGE | Result too large (macro constant) |
Contents |
Many additional errno constants aredefined by POSIX and by theC++ standard library, and individual implementations may define even more, e.g.errno(3) on Linux orintro(2) on BSD and OS X.
Possible output:
log(-1.0) = nanNumerical argument out of domain log(0.0) = -infNumerical result out of range
| macro which expands to POSIX-compatible thread-local error number variable (macro variable)[edit] | |
| displays a character string corresponding of the current error tostderr (function)[edit] | |
(C11)(C11) | returns a text version of a given error code (function)[edit] |
C++ documentation forError numbers | |