Chinaunix首页 | 论坛 | 博客
  • 博客访问: 288064
  • 博文数量: 134
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 118
  • 用 户 组: 普通用户
  • 注册时间: 2013-08-01 14:02
文章分类

全部博文(134)

文章存档

2015年(2)

2014年(4)

2013年(128)

发布时间:2013-10-23 13:57:09

......【阅读全文】

阅读(1082) | 评论(0) | 转发(0)

发布时间:2013-10-22 19:29:43

#include <unistd.h>#include <sys/types.h>#include <fcntl.h>#include <stdlib.h>// I.制作大小为100个字节的文件 II.制作任意大小的文件 ./faire_file 5155int main(int argc, char* argv[]){    int n = 0;    char buf[100] = {};    int fd = open(argv[1], O.........【阅读全文】

阅读(1193) | 评论(0) | 转发(0)

发布时间:2013-10-22 19:26:32

/*1.制作文件1.txt -- 10.txt1.txt  1 2 3 4 5 6 7 8 9 102.txt  11 12 13 14 15 16 17 18 19 20...10.txt 91 92 93 94 95 96 97 98 99 100sprintf(buf,"%d.txt",2);*/#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <sys/mman.h>#include <fcntl.h>#includ.........【阅读全文】

阅读(1128) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册