strerror
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <string.h> 中定义
|
||
| char* strerror( int errnum ); |
||
返回的错误代码的文本版本
errnum。errnum的收购errno变量,函数接受任何int类型的值。该消息是特定于语言环境的.原文:
Returns text version of the error code
errnum. errnum is usually acquired from the errno variable, however the function accepts any value of type int. The message is locale-specific.返回的字节字符串不能被修改通过该程序,但可能会被覆盖的后续调用
strerror功能 原文:
The returned byte string must not be modified by the program, but may be overwritten by a subsequent call to the
strerror function. 目录 |
[编辑] 参数
| errnum | - | 积分值指的是一个错误代码
原文: integral value referring to a error code |
[编辑] 返回值
指针指向一个空终止字节的字符串对应的错误代码
errnum.原文:
Pointer to a null-terminated byte string corresponding to the error code
errnum.[编辑] 示例
| 本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
| C++ documentation for strerror
|