file_open
摘要:
#include<stdio.h>#include<stdlib.h>#include<sys/types.h>#include<sys/stat.h>#include<fcntl.h>int main(int argc, char *argv[]){ int fd; if(argc < 2) { puts("please input the filename!\n"); exit(1); } if((fd = open(argv[],O_CREAT|O_RDWR,0755)) < 0) ... 阅读全文
posted @ 2011-11-30 22:12 小风儿_xf 阅读(202) 评论(0) 推荐(0) 编辑