blob: d919c60cf838f3dca9838daf0b063529b385a92d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "cmd_version.h"
void *cmd_version(void *data)
{
char *param = (char *)data;
char *ret = NULL;
const int buf_size = 128;
char buf[buf_size+1];
printf("VERSION\n");
snprintf(buf, buf_size, "VERSION:0.0.3" " DATE:" VERSION_DATE " COMMIT:" VERSION_COMMIT "\n");
ret = alloc_new_str(buf);
}
|