Linux C中的opendir


头文件

#include<sys/types.h>

#include<dirent.h>

函数原型

DIR* opendir (const char * path );

功能

打开一个目录,在失败的时候返回一个空的指针。