core-lightning/version.c
Rusty Russell 5b3bde715a getinfo: add version information
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-09-14 05:28:51 +09:30

17 lines
274 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)
{
printf("%s\n"
"aka. %s\n"
"Built with: %s\n", VERSION, VERSION_NAME, BUILD_FEATURES);
exit(0);
}