Path: 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> Sender: usenet@ee.udel.edu Organization: University of Delaware Lines: 22 Nntp-Posting-Host: estelle.ee.udel.edu In article 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 -----