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:
- 24:ba5fa9548f59
- Parent:
- 23:18b5f3d7ef14
--- a/IniManager.h Sat Mar 31 23:36:47 2018 +0000
+++ b/IniManager.h Wed Apr 11 00:28:03 2018 +0000
@@ -172,7 +172,7 @@
* @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 INI_SUCCESS if the file, section, key, and value are found, and it fits into the specified buffer.
+ * @return INI_SUCCESS if the file, section, key, and value are written.
* @return INI_NO_FILE_SPEC if the ini file was never set.
* @return INI_FILE_NOT_FOUND if the ini file was specified, but cannot be found as specified.
* @return INI_SECTION_NOT_FOUND if the section was not found.
@@ -182,6 +182,23 @@
INI_Return WriteString(const char * section, const char * key, const char * buffer, int len = -1);
+ /** Writes a long integer into the ini file
+ *
+ * This writes a given long integer into an ini file in the named section and key.
+ *
+ * @param[in] section is the name of the section to search.
+ * @param[in] key is the name of the key to search.
+ * @param[in] value is the long integer.
+ *
+ * @return INI_SUCCESS if the file, section, key, and value are written.
+ * @return INI_NO_FILE_SPEC if the ini file was never set.
+ * @return INI_FILE_NOT_FOUND if the ini file was specified, but cannot be found as specified.
+ * @return INI_SECTION_NOT_FOUND if the section was not found.
+ * @return INI_KEY_NOT_FOUND if the key was not found.
+ * @return INI_BUF_TOO_SMALL if everything was found, but it could not fit into the specified buffer.
+ */
+ INI_Return WriteLongInt(const char * section, const char * key, long int value);
+
/** Get Section, or Next Section name
*
* This can be used to walk the list of section names in a file.