path: root/src/err.c
authorSergey Poznyakoff <>2013-10-15 17:07:26 (GMT)
committer Sergey Poznyakoff <>2013-10-15 17:07:26 (GMT)
commit7d0beb6599c53544739409ca4aec104bf27a3f35 (patch) (side-by-side diff)
treeb561fbba7c9acedec17cbc398cee12a465faad6e /src/err.c
parentef3f928cc712f6774e19f8cb8f880cbeac15e8ff (diff)
Add version and help output to command line utilities.
Diffstat (limited to 'src/err.c') (more/less context) (show whitespace changes)
1 files changed, 9 insertions, 0 deletions
diff --git a/src/err.c b/src/err.c
index 73aaba7..5c4d8d8 100644
--- a/src/err.c
+++ b/src/err.c
@@ -60,3 +60,12 @@ packerror(const char *fmt, ...)
+ printf("%s (%s) %s\n", progname, PACKAGE_TARNAME, PACKAGE_VERSION);
+ printf("Copyright (C) 2013 Sergey Poznyakoff\n");
+ printf("License GPLv3+: GNU GPL version 3 or later <>\n");
+ printf("This is free software: you are free to change and redistribute it.\n");
+ printf("There is NO WARRANTY, to the extent permitted by law.\n");

Return to:

Send suggestions and report system problems to the System administrator.