File: configtest.c

package info (click to toggle)
cdebconf 0.227
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,552 kB
  • sloc: ansic: 16,568; sh: 549; makefile: 456; sql: 52; perl: 13
file content (12 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
#include "configuration.h"

#define FILENAME "test.conf"

int main(int argc, char **argv)
{
	struct configuration *cfg = config_new();
	cfg->read(cfg, FILENAME);
	cfg->dump(cfg);
	config_delete(cfg);
	return 0;
}