Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: demo.cpp
- Revision:
- 24:19c77967674e
- Parent:
- 23:dd2c28fa4dfd
- Child:
- 25:015631f9e875
diff -r dd2c28fa4dfd -r 19c77967674e demo.cpp --- a/demo.cpp Tue Sep 27 10:45:38 2016 +0000 +++ b/demo.cpp Tue Sep 27 11:10:20 2016 +0000 @@ -34,7 +34,13 @@ for (i = 0; i < FILENAME_LENGTH; i++) filename[i] = 0; short len = file_FindFirstRet("*.TXT", filename); - sprintf(buf, "\n\rFilename = %s\nLength = %i\n", filename, len); + sprintf(buf, "\n\rFirst filename = %s\n Length = %i", filename, len); + puts(buf); + for (i = 0; i < FILENAME_LENGTH; i++) + filename[i] = 0; + file_FindNext(); + len = file_FindNextRet(filename); + sprintf(buf, "\n\rNext filename = %s\n Length = %i", filename, len); puts(buf); } //**************************************************************************