diff th_util.c @ 489:41c1d786ff08

Add th_print_version().
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 23 Sep 2019 19:47:11 +0300
parents 02a2a46f5485
children 3a852e9f70a6
line wrap: on
line diff
--- a/th_util.c	Thu Sep 19 06:20:17 2019 +0300
+++ b/th_util.c	Mon Sep 23 19:47:11 2019 +0300
@@ -65,6 +65,15 @@
 }
 
 
+void th_print_version(FILE *outFile)
+{
+    fprintf(outFile, "%s", th_prog_name);
+    if (th_prog_version != NULL)
+        fprintf(outFile, " v%s", th_prog_version);
+    fprintf(outFile, "\n");
+}
+
+
 int th_term_width()
 {
     char *var = getenv("COLUMNS");