diff options
author | FreeArtMan <dos21h@gmail.com> | 2017-05-07 22:45:27 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2017-05-07 22:45:27 +0100 |
commit | 8622152983f24677316c5b817db12414c6e7c058 (patch) | |
tree | 608cea38d7fc81b4d626596558b408b7aa590b97 /cmd_cookie.c | |
parent | adf40686a636bfe95357c3affe011a2514bfbf52 (diff) | |
download | agni-8622152983f24677316c5b817db12414c6e7c058.tar.gz agni-8622152983f24677316c5b817db12414c6e7c058.zip |
Added new command
Diffstat (limited to 'cmd_cookie.c')
-rw-r--r-- | cmd_cookie.c | 19 |
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 |