From 126fa84b8591c3b285b7f598089451aa22447f10 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 20 May 2017 13:43:49 +0100 Subject: Moved commands to seperate directory, moved external sources to seperate directory, updated Makefile with auto include and auto compile features --- cmd/cmd_ping.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cmd/cmd_ping.c (limited to 'cmd/cmd_ping.c') diff --git a/cmd/cmd_ping.c b/cmd/cmd_ping.c new file mode 100644 index 0000000..a8e3c59 --- /dev/null +++ b/cmd/cmd_ping.c @@ -0,0 +1,13 @@ +#include "cmd_ping.h" + +void *cmd_ping(void *data) +{ + char *param = (char *)data; + char *ret = NULL; + + printf("PONG\n"); + + ret = alloc_new_str("pong"); + + return ret; +} \ No newline at end of file -- cgit v1.2.3