| delorie.com/archives/browse.cgi | search |
| From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: directory structure. |
| Date: | 13 Apr 2000 14:59:41 GMT |
| Organization: | Aachen University of Technology (RWTH) |
| Lines: | 12 |
| Message-ID: | <8d4nct$fvd$1@nets3.rz.RWTH-Aachen.DE> |
| References: | <38F5CA5F DOT BF66424B AT softone DOT com DOT br> |
| NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
| X-Trace: | nets3.rz.RWTH-Aachen.DE 955637981 16365 137.226.32.75 (13 Apr 2000 14:59:41 GMT) |
| X-Complaints-To: | abuse AT rwth-aachen DOT de |
| NNTP-Posting-Date: | 13 Apr 2000 14:59:41 GMT |
| Originator: | broeker@ |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Gabriel Ortiz Lour <lour AT softone DOT com DOT br> wrote: > Hi, > What is a good method for searching for files in a given > directory and for the directories in the root? Any sources or tutorials > would help. A good look into the libc docs concerning functions like opendir() and readdir() should help. Those are somewhat portable functions. If you want it more DOSish, try findfirst()/findnext() -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |