摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu 阅读全文
posted @ 2016-02-15 23:17 高傲的monkey 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 在使用这个结构体和方法时,需要引入: <sys/types.h> <sys/stat.h> struct stat这个结构体是用来描述一个linux系统文件系统中的文件属性的结构。 可以有两种方法来获取一个文件的属性: 1、通过路径: int stat(const char *path, struc 阅读全文
posted @ 2016-02-15 22:25 高傲的monkey 阅读(600) 评论(0) 推荐(0) 编辑
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu 阅读全文
posted @ 2016-02-15 18:47 高傲的monkey 阅读(329) 评论(0) 推荐(0) 编辑
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu 阅读全文
posted @ 2016-02-15 16:10 高傲的monkey 阅读(414) 评论(0) 推荐(0) 编辑
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu 阅读全文
posted @ 2016-02-15 12:25 高傲的monkey 阅读(475) 评论(0) 推荐(0) 编辑