www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/25/15:05:08

Date: Mon, 25 Sep 2000 22:05:38 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
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

> From: "Paulo J. Matos aka PDestroy" <pdestroy AT netcabo DOT pt>
> 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.

- Raw text -


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