File: parse.c

package info (click to toggle)
libapache2-mod-tile 0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,288 kB
  • sloc: ansic: 7,809; cpp: 6,692; sh: 853; python: 412; makefile: 69
file content (24 lines) | stat: -rw-r--r-- 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include "iniparser.h"

int main(int argc, char * argv[])
{
    dictionary * ini ;
    char       * ini_name ;

	if (argc<2) {
        ini_name = "twisted.ini";
	} else {
		ini_name = argv[1] ;
	}

    ini = iniparser_load(ini_name);
    iniparser_dump(ini, stdout);
    iniparser_freedict(ini);

	return 0 ;
}