*BSD News Article 37312


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!wabbit.cc.uow.edu.au!picasso.cssc-syd.tansu.com.au!newshost!chrisb
From: chrisb@stork.cssc-syd.tansu.com.au (Chris Bitmead)
Newsgroups: comp.unix.bsd
Subject: Re: Readdir Question
Date: 28 Oct 94 15:12:48
Organization: Telecom Australia - CSSC
Lines: 14
Distribution: world
Message-ID: <CHRISB.94Oct28151248@stork.cssc-syd.tansu.com.au>
References: <38j0au$lm2@tardis-gw.alcatel-alsthom.fr>
NNTP-Posting-Host: stork.cssc-syd.tansu.com.au
In-reply-to: taieb@cett.alcatel-alsthom.fr's message of 25 Oct 1994 13:14:06 GMT

In article <38j0au$lm2@tardis-gw.alcatel-alsthom.fr> taieb@cett.alcatel-alsthom.fr (Laurent Taieb) writes:

>Hi Unixver !
>
> I've got a lite question for somebody who can answer me !
>
> When, I want to read the files of a directory , I start by opening the
> directory by OPENDIR, then a read the items byr READDIR.
>
> Ok but : Do I have to do a FREE after each READDIR ???

No! the result is contained in static memory that you shouldn't touch or
free().