Mail Archives: djgpp/2002/12/04/11:32:07
> Date: Wed, 4 Dec 2002 10:21:24 +0100 (MET)
> From: lscholta AT gmx DOT de
>
> I have a problem with "findfirst": I have written a program which is
> searching for *.c files in the current directory and in subdirectories. Although i
> have add "FA_DIREC",it works only in the current directory but files in
> subdirectories were not found. Where is the problem?
As already explained here, `findfirst' only finds files in the current
directory. To find files in subdirectories, you need to chdir to each
subdirectory found by `findfirst' and repeat the loop there.
DJGPP has a library function that will do most of the work for you,
it's called `__file_tree_walk'. Look up its documentation in the
library reference manual.
- Raw text -