To: djgpp AT delorie DOT com Date: Mon, 10 Sep 2001 17:37:30 -0700 Subject: Re: Help with directories Message-ID: <20010910.230100.8798.1.vmccar@juno.com> References: <20010907 DOT 120809 DOT 6726 DOT 4 DOT vmccar AT juno DOT com> X-Mailer: Juno 1.49 X-Juno-Line-Breaks: 0-1,4-9,11-21 From: Vince D McCarthy Reply-To: djgpp AT delorie DOT com Thank you Eli Took a few hrs but finally got it working. I believe I found a problem with the INFO-Glob. At the end of the Example where it has the command. globfree(&glob_results); caused a program crashed. Changed to globfree(&glob_results.gl_pathv); With this the program works ok. again thanks. HAGD Vince.... On Fri, 07 Sep 2001 22:52:55 +0300 "Eli Zaretskii" writes: >> Date: Fri, 7 Sep 2001 12:07:43 -0700 >> From: Vince D McCarthy >> >> I would appreciate any help on a project I have been working on. I >> am trying to find a command to check a directory for only one type >> of extension i.e@ *.exe. I would like to use a wild card for just >> .exe extensions instead of every file in the directory. I have used >> dirent.h and dir.h, but they don't have what I need. > >You want the library function `glob', I think. ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/tagj.