2011年12月1日

将一个文件读到另一个文件

摘要: #include<stdio.h>#include<sys/stat.h>#include<sys/types.h>#include<fcntl.h>#include<errno.h>#define BUFFER_SIZE 1024int main(int argc, char **argv){ int from_fd, to_fd; int read_bytes, write_bytes; char buffer[BUFFER_SIZE]; char *ptr; if(argc != 3) { fprintf(stde... 阅读全文

posted @ 2011-12-01 22:46 小风儿_xf 阅读(222) 评论(0) 推荐(0) 编辑

导航