summaryrefslogtreecommitdiff
path: root/cmd/cmd_rand.c
blob: 58f2efe685d647f1dec29cefb200dab7eafc4718 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}