X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/568c39ad1836f8cf87ccc1b2ba577b6f6ba37e25..ddbdd8cec2a54faef7b3a25d998ba350ec026cfe:/test/testlib.c diff --git a/test/testlib.c b/test/testlib.c index e5143c2..3c8bb8c 100644 --- a/test/testlib.c +++ b/test/testlib.c @@ -69,3 +69,12 @@ bool strict_strtoul(unsigned long *val, const char *str, int base) return true; } + +void test_print_version(const char *program) +{ + printf("%s (%s) %s\n", program, PACKAGE_NAME, PACKAGE_VERSION); + puts("Copyright (C) 2011 Nick Bowler."); + puts("License GPLv3+: GNU GPL version 3 or later ."); + puts("This is free software: you are free to change and redistribute it."); + puts("There is NO WARRANTY, to the extent permitted by law."); +}