Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <rtl.h> int fdefrag ( const char *drive); /* drive to defragment */
The function fdefrag defragments the Embedded File System. The parameter drive is a character pointer specifying the drive letter.
The function is included in the RL-FlashFS library. The prototype is defined in the file rtl.h.
The following values are allowed for the parameter drive:
fanalyse, fcheck
#include <rtl.h>; void free_space (void) { printf ("\nFree space before defrag: %d bytes.", ffree("F:")); if (fanalyse("F:") > 50) { fdefrag ("F:"); } printf ("\nFree space after defrag: %d bytes.", ffree("F:")); }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.