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|linux C 编程经验总结】
推荐阅读
- C语言学习|第十一届蓝桥杯省赛 大学B组 C/C++ 第一场
- 【C】题目|【C语言】题集 of ⑥
- Linux|109 个实用 shell 脚本
- linux笔记|linux 常用命令汇总(面向面试)
- 单片机|自学单片机好找工作吗(会单片机能找什么工作?)
- 单片机|keil把源代码生成lib的方法
- c语言|一文搞懂栈(stack)、堆(heap)、单片机裸机内存管理malloc
- Linux|Linux--网络基础
- linux|apt update和apt upgrade命令 - 有什么区别()
- c语言|C语言初期学习遇到的特殊点 【三子棋详解】【初学者福音,详细总结,复习能手】