char *strerror(int errnum);
strerror 将错误编号 errnum 转换为一个字符串。errnum 的值通常是 errno 的副本。如果 errnum 不是已知的错误编号,则结果指向一个空字符串。
strerror 的此实现会为 `errno.h' 中定义的每个值打印出以下字符串:
EBUSY Device or resource busy
ECOMM Communication error
EINTR Interrupted system call
ELIBACC Cannot access a needed shared library
ELIBBAD Accessing a corrupted shared library
ELIBEXEC Cannot exec a shared library directly
ELIBMAX Attempting to link in more shared libraries than system limit
ELIBSCN .lib section in a.out corrupted
EMFILE Too many open files
EMULTIHOP Multihop attempted
ENAMETOOLONG File or path name too long
ENFILE Too many open files in system
ENOENT No such file or directory
ENOEXEC Exec format error
ENOLINK Virtual circuit is gone
ENOMSG No message of desired type
ENONET Machine is not on the network
ENOSPC No space left on device
ENOSR No stream resources
ENOSYS Function not implemented
ENOTBLK Block device required
ENOTEMPTY Directory not empty
ENOTTY Not a character device
ENXIO No such device or address
EREMOTE Resource is remote
EROFS Read-only file system
ETIME Stream ioctl timeout
EXDEV Cross-device link### 返回值
此函数返回一个指向字符串的指针。您的应用程序不得修改该字符串。
**权威来源**: BUSMASTER DITA help source `strerror.dita`, compiled into `BUSMASTER.CHM` with the application.