#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; }