China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 02:21
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Are there functions in C/C++ for "finding directories"? View 830 Replies 2
Original Poster Posted 2003-07-29 00:00 ·  澳大利亚 Telstra全球互联网服务网络
初级用户
Credits 141
Posts 9
Joined 2003-06-20 00:00
23-year member
UID 5596
Gender Male
From 天津
Status Offline
I know that in C/C++ there are the file-search functions "findfirst" and "findnext" for searching in the current directory. But I need to search for files under multiple directories. Does any expert know whether there is a function for finding other directories under the current directory?
Floor 2 Posted 2003-07-31 00:00 ·  新加坡 星和视界(StarHub)宽带
初级用户
Credits 169
Posts 29
Joined 2003-07-09 00:00
23-year member
UID 6654
Gender Male
Status Offline
In direct.h there are opendir(), readdir(), and closedir() defined, which can be used to search directories and files.
Floor 3 Posted 2003-08-04 00:00 ·  中国 北京 大兴区 亦庄联通通泰IDC机房(亦庄经济技术开发区北环东路一号联通国际大厦)
初级用户
Credits 141
Posts 9
Joined 2003-06-20 00:00
23-year member
UID 5596
Gender Male
From 天津
Status Offline
Thanks, big brother!
Forum Jump: