File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / example / test_boot.c
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Wed Apr 4 11:43:05 2012 UTC (12 years, 1 month ago) by misho
Branches: cfg5_0
add UT for patch boot scripts

#include <stdio.h>
#include <aitcfg.h>


int
main(int argc, char **argv)
{
	cfg_root_t cfg;

	if (cfgLoadConfig(argv[1], &cfg)) {
		printf("Error:: #%d - %s\n", cfg_GetErrno(), cfg_GetError());
		return 1;
	}

	cfgWriteConfig(stdout, &cfg, 0);

	cfgUnloadConfig(&cfg);
	return 0;
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>