From 6961e4237f24306ab2475f4f527a7c802134c4d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Fri, 1 May 2020 15:18:12 +0200 Subject: added working inline command tag detector, more constants ability to change inline command tag characters, variable length and count and buffer size from define headers. TODO: line-commands (lines, starting with ?) comments (lines, starting with #) --- test/randstring-test.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/randstring-test.c (limited to 'test/randstring-test.c') diff --git a/test/randstring-test.c b/test/randstring-test.c new file mode 100644 index 0000000..644a0d9 --- /dev/null +++ b/test/randstring-test.c @@ -0,0 +1,12 @@ +#include +#include +#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; +} -- cgit v1.2.3