linux C 编程经验总结

1.是使用scandir遇到的坑,回调过滤函数最好不用d_type

#if 0
    // NOTES: The filesystem of drone Centos 6 don't support d_type correctly.
    // DT_REG: a regular file
    if (dir->d_type != DT_REG) {
        return 0;
    }

#endif

 

你可能感兴趣的:(LINUX,C语言,c语言,linux)