命名空间
变体
操作

标准库头文件 <errno.h>

来自 cppreference.cn
< c‎ | 头文件

此头文件是错误处理库的一部分。

[编辑] 错误编号

宏,展开为 POSIX 兼容的线程局部错误编号变量
(宏变量) [编辑]
标准 POSIX 兼容错误条件的宏
(宏常量) [编辑]

[编辑] 概要

#define EDOM   /* implementation-defined */
#define EILSEQ /* implementation-defined */
#define ERANGE /* implementation-defined */
 
#define errno  /* implementation-defined */
 
// Only if the implementation defines __STDC_LIB_EXT1__ and additionally the user code
// defines __STDC_WANT_LIB_EXT1__ before any inclusion of <errno.h>:
#ifdef __STDC_WANT_LIB_EXT1__
#define __STDC_LIB_EXT1__  /* implementation-defined */
#define errno_t            /* implementation-defined */
#endif