X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fprint_version.c;h=72233908270892025e4a150e304cd0a94152d7ca;hp=b828b3cce7dbbe85142b2b6fc3cbbcad665521fd;hb=ee8d01d64e8832304256de53db07228e2be67f6a;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b diff --git a/sbr/print_version.c b/sbr/print_version.c index b828b3c..7223390 100644 --- a/sbr/print_version.c +++ b/sbr/print_version.c @@ -1,17 +1,19 @@ - /* - * print_version.c -- print a version string - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** print_version.c -- print a version string +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include void -print_version (char *invo_name) +print_version(char *invo_name) { - printf("%s -- %s\n", invo_name, version_str); + printf("%s -- %s\n", invo_name, version); + if (strcmp(version, lib_version)!=0) { + printf("libversion: %s\n", lib_version); + } }