This is a RISC OS port of EzINI a small and easy to use ANSI C library implementing INI file reading and writing. This library is intended to be easy to use and build upon. It is small in size, thus not as feature complete as other libraries, but should be sufficient to meet most requirements.
To build from the source just git clone this repo and then go to LibEzINI -> src directory.
To build these files with GNU make and gcc, simply double click on the file called MkGCC, before you do that make sure that your RISC OS device Filer has seen where your copy of !GCC is (usually in Apps.Development).
To build these files with ROOL DDE, simply click on the file called MkDDE, before you do that please make sure your RISC OS device Filer has executed the !SetPaths from DDE which should be placed in AcornC/C directory.
Have a look at the file called sample in src.c, it demonstrates the usage of LibEzINI functions.
(section, key, value) triples are stored in entry structures (ini_entry_t) and multiple entry structures may be linked together in an entry list (ini_entry_list_t).
Read an INI file by calling GetEntryFromFile until it returns 0.
Write an INI file by using AddEntryToList to build an entry list, then call MakeINIFile to make a file from the entry list. Call FreeList when you are done.
Feedback is always welcome!
For any issue you may encounter please use the Issues option here on GitHub. You can find it at the top of the page. Please do not try to contact us directly, the RISC OS Community handles all the communications here on GitHub.
As for the problems reporting please use the Issues option here on GitHub also to request new features.
We welcome improvements and new ideas, before you submit your changes please have a look at the Contributing Guidelines here
See https://michaeldipperstein.github.io/ezini/
The original EzINI is released under LGPLv3, so is LibEzINI port here.