07 2014 档案

以Append方式打开文件,设置偏移量无效
摘要:1 #include 2 3 int main() 4 { 5 FILE * fd = fopen("btoo1.c", "ab+"); 6 fpos_t p ; 7 int fp = fgetpos(fd, &p); 8 printf("bef seek: f... 阅读全文

posted @ 2014-07-28 14:42 JohnChain 阅读(634) 评论(0) 推荐(0)

linux 下查看二进制文件
摘要:查看二进制有以下几种方法:方法一:hexdumpapt-get install libdata-hexdumper-perl安装好之后就可以直接hexdump your_binary_file也可以直接使用hd命令来代替hexdump如果想要慢慢看 : hd your_binary_file | m... 阅读全文

posted @ 2014-07-22 16:45 JohnChain 阅读(1452) 评论(0) 推荐(0)

函数指针数组
摘要:picked from:http://blog.sina.com.cn/s/blog_71e266c20100lw0q.html函数指针数组的定义方法,有两种:一种是标准的方法;一种是蒙骗法。第一种,标准方法:分析:函数指针数组是一个其元素是函数指针的数组。那么也就是说,此数据结构是是一个数组,且其... 阅读全文

posted @ 2014-07-22 12:00 JohnChain 阅读(1161) 评论(0) 推荐(0)

导航