X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon.c;h=b3f47edc166e5a2027cd6f3cb34cc2e04e2830d9;hb=bcdcb70445c167236311be383233e8dff4c9d54c;hp=4598819ba2c9c126f27776095aafc4a9abdb8f64;hpb=40ab4c0cde1bfee1616777995998b0cbc5ffc741;p=fastq-tools.git diff --git a/src/common.c b/src/common.c index 4598819..b3f47ed 100644 --- a/src/common.c +++ b/src/common.c @@ -8,9 +8,17 @@ #include "common.h" +#include "version.h" #include +void print_version(FILE *f, const char* prog_name) +{ + fprintf(f, "%s (fastq-tools) %s\n", + prog_name, FASTQ_TOOLS_VERSION); +} + + void or_die(int b, const char* msg) { if (b == 0) {