Mail Archives: djgpp/1998/07/15/15:00:33
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 -