This operation is the opendir(), readdir(), ..., closedir() sequence in one call.
这个操作实际上是在一次调用中执行opendir()、readdir()、...、closedir()序列。
Thee pointer to a dir structure that is returned by opendir is then used with the other five functions.
指向dir结构体的指针是opendir函数返回的,然后用于其它五个函数。
Thee opendir function initializes things so that the first readdir reads the first entry in the directory.
opendir函数初始化数据,因此第一个readdir函数读出到目录内的第一个entry。
The opendir() and readdir() functions both return NULL if a problem occurs and the errno global variable is set to indicate what went wrong.
在出现问题时,opendir()和readdir()函数都会返回NULL,并且将设置全局变量 errno 的值,以指出所出现的错误。
The opendir() and readdir() functions both return NULL if a problem occurs and the errno global variable is set to indicate what went wrong.
在出现问题时,opendir()和readdir()函数都会返回NULL,并且将设置全局变量 errno 的值,以指出所出现的错误。
应用推荐