#include "cmd_cmd.h" void *cmd_cmd(void *data) { char *param = (char *)data; char *ret = NULL; const int buf_size = 128; char buf[buf_size+1]; printf("CMD\n"); snprintf(buf, buf_size, "%s\n", param); ret = alloc_new_str(buf); return ret; }