core-lightning/common/version.c

17 lines
281 B
C

#include "gen_version.h"
#include "version.h"
#include <stdio.h>
const char *version(void)
{
return VERSION;
}
char *version_and_exit(const void *unused UNUSED)
{
printf("%s\n"
"aka. %s\n"
"Built with: %s\n", VERSION, VERSION_NAME, BUILD_FEATURES);
exit(0);
}