linux的errno
来源:互联网 发布:java坐标点的构造函数 编辑:程序博客网 时间:2024/05/18 03:02
/**g++ error_test.cpp -g -O0 -o error_test./error_test 9*/#include <errno.h>#include <stdio.h>#include <string.h>#include <stdlib.h>int main(int argc, char** argv){ if(argc <= 1){ printf("Usage: %s <errno>\nFor example:\n %s 9\n", argv[0], argv[0]); exit(1); } int no = atoi(argv[1]); printf("error=%d(%#x)(%s)\n", no, no, strerror(no)); return 0;}
执行结果如下:
[winlin@localhost zmq]$ g++ error_test.cpp -g -O0 -o error_test[winlin@localhost zmq]$ ./error_testUsage: ./error_test <errno>For example: ./error_test 9[winlin@localhost zmq]$ ./error_test 9error=9(0x9)(Bad file descriptor)
- linux 的errno定义
- linux的errno定义
- linux 的errno定义
- Linux errno的使用说明
- linux的errno
- linux的errno定义
- linux下的errno
- Linux的errno定义
- linux errno 值的含义
- linux下的errno定义
- linux 的errno定义列举
- Linux下errno的使用
- errno.h linux errno
- errno.h linux errno
- Linux errno
- Linux errno
- Linux errno
- LINUX errno
- linux终端快捷键
- linux shell 逻辑运算符、逻辑表达式详解
- LeetCode 4Sum
- nginx安装脚本
- Excel文件导入SqlServer最简单方法!(超简单、超实用)
- linux的errno
- Lucene——索引小练
- Mysql Innodb 学习经验
- 线性表---学生成绩管理--数据结构课程设计
- JVM内存分配机制
- JavaSE基础:GUI
- Raspberry Pi 搭建 LAMP, Linux, Apache, MySQL, PHP web server
- python字典
- Discuz! X2.5安装模板插件出现:对不起,您安装的不是正版应用,安装程序无法继续执行的解决方法