![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux 下的 C 语言学习
文章平均质量分 73
jane8384
这个作者很懒,什么都没留下…
展开
-
怎样检查对应的路径是一个链接目录
int check_linkdir( char *pathname ){ int res = 0; struct stat lstatbuf; struct stat statbuf; res = stat( pathname, &statbuf ); if (res != 0) {原创 2008-10-15 13:02:00 · 511 阅读 · 0 评论 -
怎样得到某一目录下面的子目录
#include #include #include #include #include #include int main(int argc ,char *argv[]){ struct stat s; struct stat s_dt ; DIR *dir; st原创 2008-10-15 14:37:00 · 361 阅读 · 0 评论