]> git.donarmstrong.com Git - fastq-tools.git/blobdiff - src/common.c
man pages
[fastq-tools.git] / src / common.c
index 4598819ba2c9c126f27776095aafc4a9abdb8f64..b3f47edc166e5a2027cd6f3cb34cc2e04e2830d9 100644 (file)
@@ -8,9 +8,17 @@
 
 
 #include "common.h"
+#include "version.h"
 #include <stdlib.h>
 
 
+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) {