opendir函数 头文件:#include <sys/types.h> #include <dirent.h> 函数:DIR *opendir(const char *name); 含义: opendir()用来打开参数name 指定的目录, 并返回DIR*形态的目录流, 和open()类似, 接下来对目录的读取和搜索都要使用此返回值. 关于DIR : 详细:http://
1. opendir() // 头文件#include<sys/types.h>#include<dirent.h>// 函数原型DIR*opendir(constchar*path);// 功能:打开一个目录// 返回值:成功则返回DIR*型态的目录流, 打开失败则返回NULL.// DIR结构体:struct__dirstream{void*__fd;char*__data;int__entry_data;char*__ptr;int__entry_ptr;siz...