1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-10-30 11:54:01 -04:00
libkernaux/examples/main.c

19 lines
328 B
C

#include <kernaux/assert.h>
#include <stdio.h>
#include <stdlib.h>
void example_main();
static void assert_cb(const char *file, const int line, const char *msg)
{
fprintf(stderr, "%s:%i:%s\n", file, line, msg);
abort();
}
int main()
{
kernaux_assert_cb = assert_cb;
example_main();
exit(EXIT_SUCCESS);
}