Date: Mon, 25 Sep 2000 22:05:38 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: pdestroy AT netcabo DOT pt Message-Id: <2427-Mon25Sep2000220536+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5h CC: djgpp AT delorie DOT com In-reply-to: <8qcu29$t8e$2@venus.telepac.pt> (pdestroy@netcabo.pt) Subject: Re: Retrieving filename References: <8qcu29$t8e$2 AT venus DOT telepac DOT pt> 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 Precedence: bulk > From: "Paulo J. Matos aka PDestroy" > Newsgroups: comp.os.msdos.djgpp > Date: Thu, 21 Sep 2000 13:13:51 +0200 > > Hi, how can I retrieve from one directory the names of files with a given > extension without using a system call (in C)? Try library functions findfirst and findnext. If you want a Posix-compliant solution (which will work on Unix/Linux systems), use openddir/readdir and filter files with fnmatch.