X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Fri, 11 Feb 2011 11:38:11 -0500 Message-Id: <201102111638.p1BGcB6Y001909@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (message from Ozkan Sezer on Fri, 11 Feb 2011 17:30:42 +0200) Subject: Re: findfirst/findnext question References: Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > - Does the path pointer I pass to findfirst() must stay valid until > I finish my all work with it using fnidnext() ? No. In fact, the calls already overwrite the DOS memory the pattern is copied to, on the next call to either function. > - Is it safe calling findfirst() & co. multiple times, Should be, if DOS allows it. We copy the ffblk data down to dos memory, do the call, then copy the data back up to djgpp memory. These functions just call the DOS interrupt services after moving the data around, so whatever DOS allows, DJGPP allows also.