6961e42
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; }