David Smart / IniManager

Dependents:   Smart-WiFly-WebServer SignalGenerator WattEye X10Svr

Revision:
16:82e0f8747b95
Parent:
12:6cf929bde139
Child:
18:282ed56d983b
--- 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;