struct dirent * readdir(DIR *dirp)
Read a directory.
A type representing a directory stream.
Size count
Number of direct structures in the buffer.
struct dirent * buffer
Input buffer.
Size current
Index of the current dirent.
Represents a directory entry.