mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Diff: cpp/FileSystemLike.cpp
- Revision:
- 1:62685faffa05
- Parent:
- 0:fd0d7bdfcdc2
- Child:
- 2:143cac498751
--- a/cpp/FileSystemLike.cpp Tue Nov 20 17:24:08 2012 +0000 +++ b/cpp/FileSystemLike.cpp Thu Nov 29 15:41:14 2012 +0000 @@ -131,16 +131,16 @@ file_name = file_system; int len = 0; while (true) { - char c = *file_name++; + char c = *file_name; if (c == '/') { // end of object name - /* file now points to one char after the '/' */ + file_name++; // point to one char after the '/' break; } if (c == 0) { // end of object name, with no filename - file_name = NULL; break; } len++; + file_name++; } fs = FileSystemLike::lookup(file_system, len); @@ -154,9 +154,4 @@ return fs; } -FileSystemLike* FilePath::getFileSystem(const char* path) { - FilePath f(path); - return f.fs; -} - } // namespace mbed