mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
27 lines
588 B
C
27 lines
588 B
C
/*
|
|
* Copyright (c) 2014-2015, Claudio Lapilli and the newRPL Team
|
|
* All rights reserved.
|
|
* This file is released under the 3-clause BSD license.
|
|
* See the file LICENSE.txt that shipped with this distribution.
|
|
*/
|
|
|
|
#include "fsyspriv.h"
|
|
|
|
#ifndef CONFIG_NO_FSYSTEM
|
|
|
|
// FREE CLUSTER CHAIN
|
|
void FSFreeChain(FS_FILE * file)
|
|
{
|
|
FS_FRAGMENT *fr, *temp;
|
|
|
|
fr = file->Chain.NextFragment;
|
|
while(fr != NULL) {
|
|
temp = fr;
|
|
fr = fr->NextFragment;
|
|
simpfree(temp);
|
|
}
|
|
file->Chain.NextFragment = NULL;
|
|
file->Chain.StartAddr = file->Chain.EndAddr = 0;
|
|
}
|
|
|
|
#endif
|