摘要: 内容来源:http://pubs.opengroup.org/onlinepubs/9699919799/functions/dirfd.html 1.dirfd 头文件:#include <dirent.h> 原型:int dirfd(DIR *dirp) 功能:返回参数dirp所指向的目录文件的 阅读全文
posted @ 2018-07-28 17:02 葫芦baby 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: 1.strchr 头文件:#include <string.h> 原型:extern char *strchr(const char *s,char c) 功能:查找字符串s中首次出现字符c的位置 返回值:成功则返回要查找字符第一次出现的位置,如果s中不存在字符c则返回NULL 2.strncase 阅读全文
posted @ 2018-07-28 16:23 葫芦baby 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://blog.csdn.net/sin0803/article/details/37539313 1.包含头文件 #include <dirent.h> 2.struct dirent结构 3.DIR结构 4.例子 阅读全文
posted @ 2018-07-28 16:01 葫芦baby 阅读(10237) 评论(0) 推荐(1) 编辑