目录 扫描目录 --相关函数 dirent结构 扫描目录 --相关函数 函数原型 #include<dirent.h> DIR *opendir(const char *pathname); DIR *fdopendir(int fd); struct dirent