Sophie

Sophie

distrib > Mageia > 6 > i586 > by-pkgid > 93fffb7c747523ac28b3e7f27a67f835 > files > 24

dotconf-examples-1.3-6.mga6.noarch.rpm

#include <stdio.h>
#include <dotconf.h>

static DOTCONF_CB(cb_newoption)
{
	printf("[FIRST_MODULE] Line %ld: Option=%s str=%s\n",
	       cmd->configfile->line, cmd->name, cmd->data.str);
	return NULL;
}

configoption_t options[] = {
	{"DupOption", ARG_STR, cb_newoption, 0, 0}
	,
	LAST_OPTION
};