summaryrefslogtreecommitdiff
path: root/show_bzversion.c
diff options
context:
space:
mode:
Diffstat (limited to 'show_bzversion.c')
-rw-r--r--show_bzversion.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/show_bzversion.c b/show_bzversion.c
new file mode 100644
index 0000000..cb073f9
--- /dev/null
+++ b/show_bzversion.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+#include <bzlib.h>
+
+/****************************************************
+ * This is a simple program to
+ * 1. test the bzip2 installation
+ * - if it compiles and links, we're in
+ * 2. run this to get the bzip2 version string
+ ****************************************************/
+
+int main(void) {
+ printf("%s\n", BZ2_bzlibVersion());
+}