A simple .ini file interface.
Dependents: Smart-WiFly-WebServer SignalGenerator WattEye X10Svr
Diff: IniManager.cpp
- Revision:
- 24:ba5fa9548f59
- Parent:
- 23:18b5f3d7ef14
- Child:
- 25:1362b843de86
--- a/IniManager.cpp Sat Mar 31 23:36:47 2018 +0000
+++ b/IniManager.cpp Wed Apr 11 00:28:03 2018 +0000
@@ -313,6 +313,14 @@
return true;
}
+INI::INI_Return INI::WriteLongInt(const char * section, const char * key, long int value)
+{
+ char buf[20];
+ snprintf(buf, 20, "%ld", value);
+ return WriteString(section, key, buf);
+}
+
+
// Create the new version as .new
// once complete, if something actually changed, then rename the .ini to .bak and rename the .new to .ini
// once complete, if nothing actually changed, then delete the .new