Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <rtl.h> int ffind ( const char *pattern, /* pattern to match files to */ FINFO *info); /* file info structure */
The function ffind searches for files that match specific patterns.
The function is included in the RL-FlashFS library. The prototype is defined in the file rtl.h.
The parameter pattern is a character pointer specifying the searching rule. The parameter can include:
The parameter info is a pointer to a structure that stores information about the matching files.
ffree
#include <rtl.h> void file_directory (void) { FINFO info; info.fileID = 0; /* info.fileID must be set to 0 */ while (ffind ("R:*.*", &info) == 0) { /* find whatever is in drive "R0:" */ printf ("\n%-32s %5d bytes, ID: %04d", info.name, info.size, info.fileID); } if (info.fileID == 0) { printf ("\nNo files..."); } }
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.