diff options
| author | Clecio Jung | 2023-04-16 10:05:54 -0300 |
|---|---|---|
| committer | Clecio Jung | 2023-04-16 10:05:54 -0300 |
| commit | 817aa55011d9d685930fd59a42df807d8ba9b2c2 (patch) | |
| tree | d6abaec4c3d2ed8830e46a5bdfca988e9ea279e5 /README.md | |
| parent | 9826b77f89c80fac287fa02a2fe432ac8e5ea462 (diff) | |
| download | libini-817aa55011d9d685930fd59a42df807d8ba9b2c2.tar.xz libini-817aa55011d9d685930fd59a42df807d8ba9b2c2.tar.zst | |
Simplifying the usage of the API
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,7 +30,7 @@ This library provides a set of functions for reading and writing INI files. Here #include "ini_file.h" int main(const int argc, const char **const argv) { - struct Ini_File *ini_file; + Ini_File *ini_file; size_t section_index, property_index; char *value; double number; @@ -56,10 +56,10 @@ int main(const int argc, const char **const argv) { /* You can iterate over the sections and keys */ for (section_index = 0; section_index < ini_file->sections_size; section_index++) { - struct Ini_Section *section = &ini_file->sections[section_index]; + Ini_Section *section = &ini_file->sections[section_index]; printf("[%s]\n", section->name); for (property_index = 0; property_index < section->properties_size; property_index++) { - struct Key_Value_Pair *property = §ion->properties[property_index]; + Key_Value_Pair *property = §ion->properties[property_index]; printf("%s = %s\n", property->key, property->value); } printf("\n"); |
