int closedir(DIR *dirp); ``` 其中,DIR是一个类型,表示目录流的指针。closedir函数的作用是关闭一个目录流,并释放与该目录流相关的资源。 二、函数用法 使用closedir函数需要先打开一个目录流。打开目录流的方法是使用opendir函数,该函数返回一个DIR类型的指针。例如: ```c DIR *dirp = opendir("/path/...
Closes the directory referenced by the directory opened byos.Path.diropen(). Syntax dirClose(dirHandleINTEGER) dirHandleis the directory handle of the directory to close. Usage This function closes the directory search handle opened withos.Path.dirOpen()....