opendir system call in GNU/LINUX
DIR *opendir(const char *name) //the path of the directory to be opened
The opendir system call returns a pointer to the directory structure which is used for reading directory entries
It Returns NULL on failure
As the opendir system call returns pointer to the directory structure it can be used to access the structure members .