ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/02/11/11:38:15

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 <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <AANLkTiku2BkHO=j+YEm4L-tCDw40o802=Lc3Mrs2Ahk0@mail.gmail.com>
(message from Ozkan Sezer on Fri, 11 Feb 2011 17:30:42 +0200)
Subject: Re: findfirst/findnext question
References: <AANLkTiku2BkHO=j+YEm4L-tCDw40o802=Lc3Mrs2Ahk0 AT mail DOT gmail DOT com>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> - 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019