Mercurial > hg > th-libs
diff th_util.c @ 45:e031a062b731
Separate program "banner" printing from th_args_help() to th_print_banner().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 03 Oct 2011 15:37:53 +0300 |
parents | 5b1e38a41bac |
children | 55e36ec05881 |
line wrap: on
line diff
--- a/th_util.c Mon Oct 03 00:28:55 2011 +0300 +++ b/th_util.c Mon Oct 03 15:37:53 2011 +0300 @@ -45,6 +45,18 @@ } +void th_print_banner(FILE *outFile, const char *binName, const char *progUsage) +{ + fprintf(outFile, + "\n%s v%s (%s)\n" + "%s\n" + "%s\n" + "Usage: %s %s\n", + th_prog_name, th_prog_version, th_prog_fullname, + th_prog_author, th_prog_license, binName, progUsage); +} + + /* Print formatted error, warning and information messages * TODO: Implement th_vfprintf() and friends? */