From WikiChip
<errno.h> Header - C
< c
Revision as of 19:53, 7 January 2015 by Inject (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The <errno.h> header is part of the standard library of the C programming language that defines several macros relating to the reporting of error conditions.

Upon failure, library functions that are required to update errno object. They will do so by setting the value of errno to an integer value greater than zero. The integer constants defined in this header can be used by the program to test for those errors immediately after the library function call that failed.

Macros

The header provides four macro definitions:

Macro Name Description Since
EDOM Expands to a distinct positive integer expression of type int. C89
EILSEQ Expands to a distinct positive integer expression of type int. C99
ERANGE Expands to a distinct positive integer expression of type int. C89
errno Expands to a modifiable lvalue of type int and with thread local storage duration. C89