- 博客(3)
- 收藏
- 关注
转载 Unix动态库和静态库比较
静态库和动态库的区别 文件预览 文件目录树如下,如你所见,非常简单。 1. libtest/ 2. |-- lt.c 3. |-- lt.h 4. `-- test.c #lt.c 1. 4. 5. #include 6. 7. void myprint(void
2009-03-26 21:02:00
2453
原创 文件属性statfs
statfs函数使用说明功能描述: 查询文件系统相关的信息。 用法: #include /* 或者 */int statfs(const char *path, struct statfs *buf);int fstatfs(int fd, struct statfs *buf); 参数: path: 位于需要查询信息的文件系统的文件路径名。 fd: 位于需要查询信
2009-03-15 19:10:00
2160
1
原创 文件属性操作
#include #include #include #include int GetFileType(mode_t st_mode, char *resp){ if (resp == NULL) return 0; if (S_ISDIR(st_mode)) resp[0] = d; /* 测试是否为目录文件 */ else if (S_ISCHR(st_mode)
2009-03-15 19:04:00
413
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人