文件名称:mytree
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 6kb
- 下载次数:
- 0次
- 提 供 者:
- 守**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
linux下tree命令的简单实现,采用递归算法,几乎可以列出整个文件系统的内容!除文件着色外,其显示结果,排布基本和tree命令一样。
用gcc编译时需加参数
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64-simple linux command to achieve the next tree, using a recursive algorithm, almost the entire file system can list the contents! In addition to colored paper, its results are displayed, and the tree command in this row of the same cloth. When compiled with gcc parameters to be added-D_GNU_SOURCE-D_FILE_OFFSET_BITS = 64
用gcc编译时需加参数
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64-simple linux command to achieve the next tree, using a recursive algorithm, almost the entire file system can list the contents! In addition to colored paper, its results are displayed, and the tree command in this row of the same cloth. When compiled with gcc parameters to be added-D_GNU_SOURCE-D_FILE_OFFSET_BITS = 64
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mytree.o
mytree.c
mytree.c