Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <rtl.h> U64 ffree ( const char* drive); /* drive to check for free space */
The function ffree calculates the free space on a device. The parameter drive is pointer specifying a drive letter.
The function is in the library RL-FlashFS. The prototype is defined in the file rtl.h.
The following values are allowed for the parameter drive:
An integer value specifying the amount of free space in bytes
ffind, fformat
#include <rtl.h> void free_space (void) { printf ("Flash Drive free: %lld bytes.\n", ffree("F:")); printf ("Ram Drive free: %lld bytes.\n", ffree("R:")); printf ("SD Card Drive 1 free: %lld bytes.\n", ffree("M0:")); printf ("SD Card Drive 2 free: %lld bytes.\n", ffree("M1:")); }
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.