aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckinfo.h.in
diff options
context:
space:
mode:
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 */