summaryrefslogtreecommitdiff
path: root/cmd/cmd_rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cmd_rand.c')
-rw-r--r--cmd/cmd_rand.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/cmd_rand.c b/cmd/cmd_rand.c
new file mode 100644
index 0000000..58f2efe
--- /dev/null
+++ b/cmd/cmd_rand.c
@@ -0,0 +1,19 @@
+#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;
+}