摘要: linux下c语言实现搜索根目录下所有文件头文件:#include#includeopendir():函数原型:DIR * opendir(const char* path);打开一个目录,在失败的时候返回NULL(如果path对应的是文件,则返回NULL)DIR 结构体的原型为:struct_dirstream 在linux系统中: typedef struct __dirstream DIR; struct __dirstream { void *__fd; /* `struct hurd_fd' pointer for d... 阅读全文
posted @ 2013-10-27 09:45 wangxiangshang 阅读(954) 评论(0) 推荐(0) 编辑