Article View: comp.sys.amiga.tech
Article #6205Re: AmigaDOS questions!!
From: Darren New
Date: Tue, 30 Oct 1990 23:45
Date: Tue, 30 Oct 1990 23:45
22 lines
1345 bytes
1345 bytes
In article <ggk.657252410@tirith.UUCP> ggk@tirith.UUCP (Gregory Kritsch) writes:
>I've found that double buffering works rather well:
>oldfib = NULL;
>while (ExNext(lk, fib)) {
> if (oldfib) remove(oldfib->fib_Filename);
> else oldfib = malloc(sizeof(struct FileInfoBlock);
> CopyMemQuick(fib,oldfib,sizeof(struct FileInfoBlock);
>}
>remove(oldfib->fib_FileName);
But maybe this won't work in future versions of the FFS that
scan from both ends inwards. Its dependance on current activity
like this that makes compatibility difficult.
A minor point here: this particular code also won't work if the
directory is empty...
-- Darren
--
--- Darren New --- Grad Student --- CIS --- Univ. of Delaware ---
----- Network Protocols, Graphics, Programming Languages,
Formal Description Techniques (esp. Estelle), Coffee -----
Technical Details
Message-ID:
<34987@nigel.ee.udel.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!ee.udel.eduReferences:
<34801@nigel.ee.udel.edu> <1990Oct11.212541.18365@hoss.unl.edu> <ggk.657252410@tirith.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!ee.udel.edu From: new@ee.udel.edu (Darren New) Newsgroups: comp.sys.amiga.tech Subject: Re: AmigaDOS questions!! Message-ID: <34987@nigel.ee.udel.edu> Date: 30 Oct 90 23:45:05 GMT References: <34801@nigel.ee.udel.edu> <1990Oct11.212541.18365@hoss.unl.edu> <ggk.657252410@tirith.UUCP> Sender: usenet@ee.udel.edu Organization: University of Delaware Lines: 22 Nntp-Posting-Host: estelle.ee.udel.edu