描述:
The readdir() function returns a pointer to a dirent structurerepresenting the next directory entry in the directory stream pointedto by dir. It returns NULL on reaching the end-of-file or if an erroroccurred.
(eaddir() 函数返回一个指向 dirent structure(结构) 的指针,在这个结构中描述了由 dir所指向的目录流中下一个目录入口< off_t d_off; /* offset to the next dirent*/> )