core-lightning/common/version.c
2018-04-04 02:32:44 +00:00

18 lines
288 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", VERSION);
if (BUILD_FEATURES[0]) {
printf("Built with features: %s\n", BUILD_FEATURES);
}
exit(0);
}