opendir, readdir
来源:互联网 发布:淘宝嘉悦海外专营店 编辑:程序博客网 时间:2024/05/01 22:42
#include <stdio.h>#include <sys/types.h>#include <dirent.h>#include <errno.h>#include <string.h>int main(int argc,char *argv[]){ if(argc < 1) { printf("./dirent directory"); return -1; } DIR *dp; if((dp = opendir(argv[1])) == NULL) { printf("opendir error %s\n",strerror(errno)); return -1; } struct dirent * dirp ; while((dirp = readdir(dp)) != NULL) { printf("%s\n",dirp->d_name); } return 0;}
0 0
- Opendir readdir
- opendir, readdir
- opendir&readdir
- opendir() readdir()目录流
- opendir 、readdir 小结
- opendir readdir closedir
- opendir readdir closedir
- dirent / opendir(), readdir()
- opendir 、readdir 小结
- opendir ,readdir 测试demo
- opendir 、readdir 小结
- opendir 、readdir 小结
- Linux chmod opendir readdir closedir
- opendir 、closedir 、readdir 目录函数
- php 中 opendir() readdir() scandir()
- opendir()和readdir()的具体用法
- opendir()和readdir()的具体用法
- linux opendir readdir closedir 的使用
- 关闭套接字closesocket()
- Ant-build.xml配置说明
- JQuery效果
- C# 读取EXCEL文件的三种经典方法
- 用WeX5做一个二维码名片应用!有源码!
- opendir, readdir
- LintCode(easy)比较字符串(正确版)
- 从Script到Code Blocks、Code Behind到MVC、MVP、MVVM
- 【FJ省队训练&&NOIP夏令营】酱油&&滚粗记
- linux socket 编程(二)
- JQuery选择器
- P1001 蓝桥杯算法提高-用字符串处理大数乘法
- mysql多字段排序问题
- Android的Handler机制原理