aboutsummaryrefslogtreecommitdiff
path: root/examples/ini_file_create.c
diff options
context:
space:
mode:
authorClecio Jung2023-03-23 17:10:31 -0300
committerClecio Jung2023-03-23 17:10:31 -0300
commit629d03b079b29f6d5178c407537aa15f9d109ec8 (patch)
tree801cbdde1d0bce5181b99d0fa741f6134cd4981d /examples/ini_file_create.c
parent308925f81dcac05471e818865a94061f3421f217 (diff)
downloadlibini-629d03b079b29f6d5178c407537aa15f9d109ec8.tar.xz
libini-629d03b079b29f6d5178c407537aa15f9d109ec8.tar.zst
Sorting sections and properties
Diffstat (limited to 'examples/ini_file_create.c')
-rw-r--r--examples/ini_file_create.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ini_file_create.c b/examples/ini_file_create.c
index e1cfd21..2aeb5a6 100644
--- a/examples/ini_file_create.c
+++ b/examples/ini_file_create.c
@@ -31,9 +31,9 @@
*/
int main(void) {
- char filename[MAX_STRING_SIZE], key[MAX_STRING_SIZE], value[MAX_STRING_SIZE];
- /* The first section is global to the file */
- char section[MAX_STRING_SIZE] = "global";
+ char filename[MAX_STRING_SIZE];
+ char section[MAX_STRING_SIZE];
+ char key[MAX_STRING_SIZE], value[MAX_STRING_SIZE];
struct Ini_File *ini_file = ini_file_new();
/* Instruction on how to use this application */
printf("Following, type the requested fields of keys, values and section names.\n");