diff --git a/README.md b/README.md index 5023ecf..a4ebfec 100644 --- a/README.md +++ b/README.md @@ -45,15 +45,29 @@ On every write, the file is completely rewritten. ## Usage +### C++: + ``` cpp #include File ini("test.ini"); -const auto intValue = init.get("section", "key"); +const auto intValue = ini.get("section", "key"); const auto newValue = 42; ini.set("section", "key", newValue); ``` +### C: + +``` c +#include + +void* ini = cppIni_open("test.ini"); +const int intValue = cppIni_geti(ini, "section", "key"); +const int newValue = 42; +cppIni_set(ini, "section", "key", newValue); +cppIni_close(&ini); +``` + ## License -cppIni is licensed under the MIT license. See [COPYING](https://github.com/Master92/cppIni/COPYING) for more information. +cppIni is licensed under the GPLv3. See [COPYING](https://github.com/Master92/cppIni/blob/master/COPYING) for more information.