httplib_readdir( dir );
||A pointer to name of the directory to open|
||A pointer to a directory entry structure or NULL on error|
httplib_readdir() reads the next entry from a directory. The directory must have been opened earlier with a call to the function
httplib_opendir(). If the next directory entry can be found, a pointer to a
dirent structure is returned. If an error occurs or the last item in a directory has been read the value
NULL is returned instead.
On platforms which support Posix the call to
httplib_readdir() is a wrapper arround
readdir(). On other systems the function is implemented with own code as a clone of the
After the last item has been read with
httplib_opendir(), the directory must be closed with a call to
httplib_closedir() to return occupied resources.