mirror of
https://github.com/mist-devel/mist-firmware.git
synced 2026-01-11 23:43:04 +00:00
25 lines
547 B
C
25 lines
547 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdarg.h>
|
|
|
|
#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]);
|
|
}
|
|
}
|