summaryrefslogtreecommitdiff
path: root/cmd/cmd_version.c
blob: 1d98028890c1d19e0065c8e21fddd5e9a4b63d20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "cmd_version.h"

void *cmd_version(void *data)
{
	char *ret = NULL;

	const int buf_size = 128;
	char buf[buf_size+1];

	printf("VERSION\n");
	
	snprintf(buf, buf_size, "VERSION:0.0.8" " DATE:" VERSION_DATE " COMMIT:" VERSION_COMMIT "");

	ret = alloc_new_str(buf);

	return ret;
}