delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/11/17:06:39

Date: Wed, 11 Dec 02 17:06:08 EST
From: jpn AT genrad DOT com (John P. Nelson)
Message-Id: <10212112206.AA21215@aurora.genrad.com>
To: djgpp AT delorie DOT com
Subject: Re: problems with findfirst
Newsgroups: comp.os.msdos.djgpp
In-Reply-To: <28777.1038993684@www18.gmx.net>
Organization: GenRad, Inc.
Cc:
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

In article <28777 DOT 1038993684 AT www18 DOT gmx DOT net> you write:
>Hello, 
>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?

The problem is in your understanding of what FA_DIREC does.

FA_DIREC does not cause findfirst to search subdirectories.  It only
causes "findfirst" to return the names of subdirectories (they are
normally excluded).

If you need to search subdirectories, you will need to write (recursive)
code to search subdirectories.

-- 
     john nelson (jpn AT genrad DOT com)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019