> So isn't the memmove just to cover the case where you are > deleting a block that isn't at the very end?
Yes, but from what I understand i is always lower. Say b->nbl starts at 10. i=b->nbl-1 so i=9. --i so i=8. Inside delblock b->nbl-- so b->nbl is 9. i<nbl is true so the memmove happens. Also delblock(b, 0) never seems to happen. On Fri, Aug 12, 2016 at 6:20 PM, James A. Robinson <jim.robin...@gmail.com> wrote: > But delblock only calls memmove if i is less then b->nbl, which was > just decremented, correct? > > So isn't the memmove just to cover the case where you are > deleting a block that isn't at the very end? > > Jim >