C 语言标准库函数
<errno.h> 定义全局变量 errno 和错误码常量,用于报告运行时错误。库函数出错时会设置 errno,程序可据此判断错误原因。
errno
perror
strerror
EDOM(数学域错误)、ERANGE(结果超出范围)等。