From 817aa55011d9d685930fd59a42df807d8ba9b2c2 Mon Sep 17 00:00:00 2001 From: Clecio Jung Date: Sun, 16 Apr 2023 10:05:54 -0300 Subject: Simplifying the usage of the API --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3c460ad..5656231 100644 --- a/README.md +++ b/README.md @@ -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"); -- cgit v1.2.3