summaryrefslogtreecommitdiff
path: root/cmd/cmd_ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cmd_ping.c')
-rw-r--r--cmd/cmd_ping.c13
1 files changed, 13 insertions, 0 deletions
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