summaryrefslogtreecommitdiff
path: root/cmd_cookie.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-05-07 22:45:27 +0100
committerFreeArtMan <dos21h@gmail.com>2017-05-07 22:45:27 +0100
commit8622152983f24677316c5b817db12414c6e7c058 (patch)
tree608cea38d7fc81b4d626596558b408b7aa590b97 /cmd_cookie.c
parentadf40686a636bfe95357c3affe011a2514bfbf52 (diff)
downloadagni-8622152983f24677316c5b817db12414c6e7c058.tar.gz
agni-8622152983f24677316c5b817db12414c6e7c058.zip
Added new command
Diffstat (limited to 'cmd_cookie.c')
-rw-r--r--cmd_cookie.c19
1 files changed, 19 insertions, 0 deletions
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