c
bill2012x
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言获得函数的执行时间
1. 精确到秒,计时单位为秒#include time_t start_time,end_time; /*长整形数据,time_t为time.h中的宏定义,原型为#define long time_t*/ start_time=time(NULL); /*记录循环开始的时间*/ /************************ * 循环或函数的原创 2013-06-04 19:45:29 · 1485 阅读 · 0 评论 -
Illegal Instruction 错误初窥
source :http://www.lingcc.com/2011/11/28/11851/ 1 现象当执行一段程序时,发生错误,并报”illegal instruction”错typedef void(*FUNC)(void);int main(void){ const static unsigned char insn[4] = { 0xff, 0xf转载 2013-06-23 15:53:58 · 1419 阅读 · 0 评论 -
linux创建读写文件
#include #include #include #include #include #include #include #define BUFFER_SIZE 1024int main(int argc,char **argv){ int from_fd,to_fd; int bytes_read,bytes_write;转载 2013-07-03 17:16:21 · 1039 阅读 · 0 评论 -
linux 下各errno的意义
strerror(errno):获取errno对应的错误/****************************获取错误代码描述**************/#include /* for strerror */#include #include int main(int argc, char ** argv) {int i = 0;for(i = 0; i转载 2013-08-09 15:32:27 · 1045 阅读 · 0 评论
分享