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.
Dependents: Smart-WiFly-WebServer SignalGenerator WattEye X10Svr
Diff: IniManager.h
- Revision:
- 16:82e0f8747b95
- Parent:
- 12:6cf929bde139
- Child:
- 18:282ed56d983b
diff -r 6cf929bde139 -r 82e0f8747b95 IniManager.h
--- a/IniManager.h Mon Apr 11 02:16:18 2016 +0000
+++ b/IniManager.h Thu Apr 14 03:12:22 2016 +0000
@@ -104,10 +104,12 @@
* @param[in] key is the name of the key to search.
* @param[in] buffer is the caller provided buffer containing the string to write. If
* buffer is NULL, then any existing entry is removed.
+ * @param[in] len is the number of characters to write, if specified. If not specified,
+ * the length of the buffer defines the length to write.
*
* @return true if the write was successful; false otherwise.
*/
- bool WriteString(const char * section, const char * key, const char * buffer);
+ bool WriteString(const char * section, const char * key, const char * buffer, int len = -1);
private:
char * iniFile;