summaryrefslogtreecommitdiff
path: root/cmd/cmd_version.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cmd_version.c')
-rw-r--r--cmd/cmd_version.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/cmd_version.c b/cmd/cmd_version.c
new file mode 100644
index 0000000..d919c60
--- /dev/null
+++ b/cmd/cmd_version.c
@@ -0,0 +1,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);
+} \ No newline at end of file