From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Best way to implement DELTREE Date: Tue, 04 Apr 2000 18:56:07 +0200 Organization: NetVision Israel Lines: 9 Message-ID: <38EA1EA7.6A8E81BE@is.elta.co.il> References: <8ccfq7$v1q$1 AT newsg1 DOT svr DOT pol DOT co DOT uk> NNTP-Posting-Host: ras1-p103.rvt.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netvision.net.il 954867278 28803 62.0.172.105 (4 Apr 2000 16:54:38 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 4 Apr 2000 16:54:38 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,ru,hebrew To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ben Davis wrote: > > Is there a function in libc which will do a DELTREE for me for my uninstall > program? If not, what is the best way to implement one? You can use the directory-traversal functions provided in the library. The function `ftw' is portable to Unix systems; the function `__file_tree_walk' is DJGPP-specific, but is usually much faster. Look them up in the library docs.