#include #include #include #include "mist_cfg.h" void siprintf(char *str, const char *format, ...) { va_list arg; va_start(arg, format); vsprintf(str, format, arg); va_end(arg); } int main() { memset(&mist_cfg, 0, sizeof(mist_cfg)); ini_parse(&mist_ini_cfg, "DEFENDER"); for (int i=0; i<5; i++) { printf("minimig cfg[%d] = %s\n", i, minimig_cfg.conf_name[i]); } for (int i=0; i<5; i++) { printf("atarist cfg[%d] = %s\n", i, atarist_cfg.conf_name[i]); } }