1
0
Fork 0
forked from hanez/xtc
xtc/src/main.c

24 lines
561 B
C
Raw Normal View History

#include "xtc/xtc.h"
#include "xtc/xtc_version.h"
2026-10-26 23:03:17 +01:00
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
xt_app *app = NULL;
xt_result result = xt_app_create(&app);
if (result != XT_OK) {
(void)fprintf(stderr, "Application initialization failed: %s\n",
xt_result_string(result));
return EXIT_FAILURE;
}
xt_app_destroy(app);
if (printf("%s %s: core startup/shutdown OK\n",
XTC_PROJECT_NAME, XTC_VERSION_STRING) < 0) {
2026-10-26 23:03:17 +01:00
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}