Return to test_boot.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / libaitcfg / example |
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; }