source: Daodan/src/inifile_test.c@ 383

Last change on this file since 383 was 346, checked in by rossy, 15 years ago

parses daodan.ini to add language patches

File size: 380 bytes
Line 
1#include <stdio.h>
2#include <stdbool.h>
3#include "inifile.h"
4
5bool ini_callback(char* section, bool newsection, char* name, char* value)
6{
7 if (newsection)
8 puts("New Section!");
9 printf("Section: %s Name: %s Value: %s\n", section, name, value);
10 return true;
11}
12
13int main()
14{
15 if (!inifile_read("testini.ini", ini_callback))
16 puts("Read error!");
17 return 0;
18}
Note: See TracBrowser for help on using the repository browser.