spBase
|
Functions | |
DIR * | spOpenDir (const char *path) |
struct dirent * | spReadDir (DIR *dirp) |
int | spCloseDir (DIR *dirp) |
|
extern |
Opens the directory specified by path
.
[in] | path | The path of a directory to open. |
|
extern |
Reads data of the directory.
[in] | dirp | The directory pointer obtained by spOpenDir() . |
d_name
and d_namlen
are the name of the file associated with the pointer and the length of the name respectively. This function normally reads directories of '.' (the current directory) and '..' (the parent directory). NULL will be returned if error occurs or all files have been read.
|
extern |
Closes the directory.
[in] | dirp | The directory pointer obtained by spOpenDir() . |
0 | Success |
-1 | Failure |