aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckinfo.h.in
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-09-27 00:51:25 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-09-27 00:51:25 +0300
commit7286c9fc5b55df0499c7a8f28b5e61ec57e788cc (patch)
tree9aa8cd4c6ddd4e27d84dc94c6b91bdb0e380062d /src/ckinfo.h.in
parenta087fe8c11f6139e0e0d48f055f8184e906befce (diff)
downloadck-7286c9fc5b55df0499c7a8f28b5e61ec57e788cc.tar.gz
ck-7286c9fc5b55df0499c7a8f28b5e61ec57e788cc.tar.bz2
ck-7286c9fc5b55df0499c7a8f28b5e61ec57e788cc.zip
Add licence and version info
Diffstat (limited to 'src/ckinfo.h.in')
-rw-r--r--src/ckinfo.h.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ckinfo.h.in b/src/ckinfo.h.in
new file mode 100644
index 0000000..3b7f843
--- /dev/null
+++ b/src/ckinfo.h.in
@@ -0,0 +1,18 @@
+#ifndef CK_INFO_H
+#define CK_INFO_H
+
+#include <stdio.h>
+
+#define CK_MAJOR_VERSION @ck_MAJOR_VERSION@
+#define CK_MINOR_VERSION @ck_MINOR_VERSION@
+
+
+extern void print_version() {
+ printf("ck version %d.%d\n", CK_MAJOR_VERSION, CK_MINOR_VERSION);
+ printf("ck Copyright (C) 2018 gramanas\n\
+This program comes with ABSOLUTELY NO WARRANTY.\n\
+This is free software, and you are welcome to redistribute it under\n\
+certain condition. See the LICENCE file in the source tree for details.\n");
+}
+
+#endif /* CK_INFO_H */