From 8622152983f24677316c5b817db12414c6e7c058 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 7 May 2017 22:45:27 +0100 Subject: Added new command --- cmd_cookie.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cmd_cookie.c (limited to 'cmd_cookie.c') diff --git a/cmd_cookie.c b/cmd_cookie.c new file mode 100644 index 0000000..8071e10 --- /dev/null +++ b/cmd_cookie.c @@ -0,0 +1,19 @@ +#include "cmd_cookie.h" + +void *cmd_cookie(void *data) +{ + char *param = (char *)data; + char *ret = NULL; + + const int buf_size = 128; + char buf[buf_size+1]; + + printf("COOKIE\n"); + + + snprintf(buf, buf_size, "No heroes yet\n"); + ret = alloc_new_str(buf); + + + return ret; +} \ No newline at end of file -- cgit v1.2.3