perror 函数用法

语法: #include <stdio.h> void perror( const char *str ); 函数说明         perror ( )用 来 将 上 一 个 函 数 发 生 错 误 的 原 因 输 出 到 标 准 错误 (stderr) 。参数 str 所指的字符串会先打印出,后面再加上错误缘由字符串。此错误缘由依照全局变量errno 的值来决定要输出的字符串。函数
相关文章
相关标签/搜索