From: Laurence Withers Newsgroups: comp.os.msdos.djgpp Subject: Re: Portable way to examine a directory? Date: Mon, 13 Jul 1998 12:45:59 +0100 Organization: Integrated Peripherals Message-ID: <6PhjzCA3Nfq1Ewqw@lwithers.demon.co.uk> References: NNTP-Posting-Host: lwithers.demon.co.uk MIME-Version: 1.0 Lines: 18 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk --- Original message --- Subject: Portable way to examine a directory? Time: Sun, 12 Jul 1998, 19:40:47 Author: Eli Zaretskii > 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, -- Laurence Withers, mailto:lwithers AT lwithers DOT demon DOT co DOT uk OPES homepage: http://www.lwithers.demon.co.uk/opes/