Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!hagbard!sunic!nuug!ifi!gisle From: gisle@ifi.uio.no (Gisle Hannemyr) Newsgroups: comp.sources.wanted Subject: Re: WANTED: ftw - walk a file tree (Unix) Message-ID: Date: 3 Dec 90 06:48:44 GMT References: <2395@pacific.mps.ohio-state.edu> Sender: gisle@ifi.uio.no (Gisle Hannemyr) Followup-To: comp.sources.wanted Organization: University of Oslo, Norway Lines: 19 Nntp-Posting-Host: kyrre.ifi.uio.no In-Reply-To: kevin@pacific's message of 2 Dec 90 20:06:43 GMT Originator: gisle@kyrre.ifi.uio.no In article <2395@pacific.mps.ohio-state.edu> kevin@pacific (Kevin Ingersent) writes: > I would like to get the source to the standard library function ftw(3), > which recursively descends a directory hierarchy, passing the name of > each file encountered to a user-supplied function. Look up K&R (first ed.) Section 8.6 on page 169 - 173: ("Example -- Listing Directories") contains source code for a program that recursively traverses the directory hierarchy. It tells you all you need to know to write your own ftw(3). -- Disclaimer: The opinions expressed herein are not necessarily those of my employer, not necessarily mine, and probably not necessary. - gisle hannemyr (Norwegian Computing Center) EAN: C=no;PRMD=uninett;O=nr;S=Hannemyr;G=Gisle (X.400 SA format) gisle.hannemyr@nr.no (RFC-822 format) Inet: gisle@ifi.uio.no UUCP: ...!mcsun!ifi!gisle ------------------------------------------------