X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/c9ec41ecea841cac0ad1aa265cdc6859a61c4ac2..e031b4f0220432aef6e1864ea6359353dbd8aed3:/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."); +}