
Linux C
文章平均质量分 73
lylarry1986
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux c 目录操作函数scandir
scandir #include int scandir( const char *dir, struct dirent **namelist, int (*filter) (const void *b), int ( * compare )( const struct dirent **, const struct dirent ** ) );翻译 2011-11-22 14:22:04 · 6709 阅读 · 0 评论 -
S_ISDIR()函数
S_ISDIR()函数 功能是判断一个路径是否为目录 在sys/stat.h中还定义了更多相关的函数 The following symbolic names for the values of type mode_t shall also be defined. File type: S_IFMT Type of file. S_IFBLK Block special.转载 2011-11-08 19:54:04 · 21567 阅读 · 1 评论 -
Linux stat函数讲解
Linux stat函数讲解: 表头文件: #include #include 定义函数: int stat(const char *file_name, struct stat *buf); 函数说明: 通过文件名filename获取文件信息,并保存在buf所指的结构体stat中 返回值: 执行成功则返回0,失败返回-1,错误转载 2011-11-08 18:56:26 · 747 阅读 · 0 评论