From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] walk From: Charles Forsyth In-Reply-To: <200307251359.h6PDx7704315@augusta.math.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 25 Jul 2003 15:16:55 +0100 Topicbox-Message-UUID: 0406f1fc-eacc-11e9-9e20-41e7f4b1d025 >> n = dirreadall(fd, &dir); >> for (dp = dir, i = 0; i < n; dp++, i++) { >> if (strcmp(dp->name, ".") == 0 || strcmp(dp->name, "..") == 0) >> continue; you should not need to eliminate . or .. when reading a directory