summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-08-22 10:23:28 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-08-22 10:23:28 (GMT)
commit769984407afdb853a552406fdfd9796c75768cc8 (patch)
tree2ee64aee32cf3c33f51044f7adcb38b1869f982b /examples
parentc380474232c821a93ec088e32d354509cc44b3ae (diff)
downloadlz4-769984407afdb853a552406fdfd9796c75768cc8.zip
lz4-769984407afdb853a552406fdfd9796c75768cc8.tar.gz
lz4-769984407afdb853a552406fdfd9796c75768cc8.tar.bz2
add new directory 'examples'
Diffstat (limited to 'examples')
-rw-r--r--examples/printVersion.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/printVersion.c b/examples/printVersion.c
new file mode 100644
index 0000000..f86e469
--- /dev/null
+++ b/examples/printVersion.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+#include "lz4.h"
+
+int main(int argc, char** argv)
+{
+ printf("Hello, LZ4 (version = %d)\n", LZ4_versionNumber());
+ return 0;
+}