#include "cmd_rand.h" void *cmd_rand(void *data) { char *ret = NULL; int fret=-1; const int buf_size = 128; char buf[buf_size+1]; printf("RAND\n"); snprintf(buf, buf_size, "4"); ret = alloc_new_str(buf); return ret; }