2026-10-26 23:07:03 +01:00
|
|
|
#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",
|
2026-10-26 23:07:03 +01:00
|
|
|
XTC_PROJECT_NAME, XTC_VERSION_STRING) < 0) {
|
2026-10-26 23:03:17 +01:00
|
|
|
return EXIT_FAILURE;
|
|
|
|
|
}
|
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
|
}
|