www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/15/15:00:33

Newsgroups: comp.os.msdos.djgpp
From: Waterlander E <waterlan AT natlab DOT research DOT philips DOT com>
Subject: Re: Portable way to examine a directory?
Sender: news AT natlab DOT research DOT philips DOT com (USEnet Subsystem)
Message-ID: <Pine.HPX.4.00.9807151329240.7666-100000@typhlops>
In-Reply-To: <6PhjzCA3Nfq1Ewqw@lwithers.demon.co.uk>
Date: Wed, 15 Jul 1998 11:30:38 GMT
References: <HZwMmCA8w5p1Ew0U AT lwithers DOT demon DOT co DOT uk>
<Pine DOT SUN DOT 3 DOT 91 DOT 980712193802 DOT 27114a-100000 AT is>
<6PhjzCA3Nfq1Ewqw AT lwithers DOT demon DOT co DOT uk>
Mime-Version: 1.0
Organization: Philips Research Laboratories Eindhoven, Netherlands
Lines: 24
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Mon, 13 Jul 1998, Laurence Withers wrote:

> --- Original message ---
> Subject:  Portable way to examine a directory?
> Time:     Sun, 12 Jul 1998, 19:40:47
> Author:   Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
> 
> >       2) Use library functions `opendir' and `readdir' to read all the 
> >file names in a directory, then pass them to `fnmatch' to see whether the 
> >file name matches the wildcard.  These functions are also Posix, but 
> >`opendir' and `readdir' are usually available on DOS compilers also. 
> 
> OK, so I'm now using opendir() and readdir() successfully, as well as
> fnmatch(). But is fnmatch() going to be included in DOS and Linux
> compilers?
> 
> Thanks for your help. Bye for now,

Take a look at dosdir. A portable directory interface.
Download from http://www.xs4all.nl/~waterlan/

Erwin Waterlander

- Raw text -


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