summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/c.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/c.h b/include/c.h
index fb6835253..fc69b910b 100644
--- a/include/c.h
+++ b/include/c.h
@@ -351,6 +351,11 @@ static inline int xusleep(useconds_t usec)
#define UTIL_LINUX_VERSION _("%s from %s\n"), program_invocation_short_name, PACKAGE_STRING
+#define print_version(eval) __extension__ ({ \
+ printf(UTIL_LINUX_VERSION); \
+ exit(eval); \
+})
+
/*
* scanf modifiers for "strings allocation"
*/