aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorClecio Jung2023-04-16 10:05:54 -0300
committerClecio Jung2023-04-16 10:05:54 -0300
commit817aa55011d9d685930fd59a42df807d8ba9b2c2 (patch)
treed6abaec4c3d2ed8830e46a5bdfca988e9ea279e5 /README.md
parent9826b77f89c80fac287fa02a2fe432ac8e5ea462 (diff)
downloadlibini-817aa55011d9d685930fd59a42df807d8ba9b2c2.tar.xz
libini-817aa55011d9d685930fd59a42df807d8ba9b2c2.tar.zst
Simplifying the usage of the API
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
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 = &section->properties[property_index];
+ Key_Value_Pair *property = &section->properties[property_index];
printf("%s = %s\n", property->key, property->value);
}
printf("\n");