摘要:相关函数:scandir, opendir, readdir, alphasort表头文件:#includedirent.h定 义函数:intscandir(const char *dir, struct dirent **namelist, nt (*select)(conststructdirent *), nt (*compar)(const struct dirent **, const struct dirent**));函数说明:scandir()会扫描参数dir指定的目录文件,经由参 数select指定的函数来挑选目录结构至参数namelist数组中,最后再调用参数compa
        
阅读全文