使用系统函数scandir遍历目录的小程序

遍历整个目录,这个在录像搜索时比较有用,咱们作设备的在作app录像查询,回放,拖拽时都须要用到录像检索扫描列表这个功能,我将介绍下简单的系统函数遍历目录的小程序。小程序   #include <dirent.h> #include <stdio.h> #include <malloc.h> int main() { struct dirent **na
相关文章
相关标签/搜索