summaryrefslogblamecommitdiffstats
path: root/test/randstring-test.c
blob: 644a0d9b22eacd8fa8d63001ade44ea2925c89ac (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                     
#include <stdlib.h>
#include <stdio.h>
#include "randstring.c"

extern int main(int argc, char* argv[]) {
	if(argc != 2) {
		printf("usage: %s length\n", argv[0]);
		return 1;
	}
	printf("generated string:\n%s\n", randstring(atoi(argv[1])));
	return 0;
}