aboutsummaryrefslogtreecommitdiffstats
path: root/src/version.c
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-28 18:30:16 +0800
committerverdant <im@verdant.ee>2026-07-28 18:30:16 +0800
commit9bffcafa9ae0c38103a8c64b3482bb099e792869 (patch)
tree3cc18cabd99f9e300ca2539a9a48fb9c2d30e337 /src/version.c
parentcbdc8462b6e982d3137b74d61bed6f8977405b8a (diff)
downloadsf-9bffcafa9ae0c38103a8c64b3482bb099e792869.tar.gz
sf-9bffcafa9ae0c38103a8c64b3482bb099e792869.zip
Move source files to src/
Diffstat (limited to 'src/version.c')
-rw-r--r--src/version.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c
new file mode 100644
index 0000000..01feb76
--- /dev/null
+++ b/src/version.c
@@ -0,0 +1,16 @@
+#include "./version.h"
+#include <stdio.h>
+#include <stdlib.h>
+void version(void)
+{
+ printf(PROGRAM_NAME
+ " " PROGRAM_VERSION " (built " BUILD_DATE
+ " with gcc " GCC_VERSION ")\n"
+ "Copyright (C) 2026 " PROGRAM_AUTHOR ".\n"
+ "License GPLv3+: GNU GPL version 3 or later "
+ "<https://gnu.org/licenses/gpl.html>.\n"
+ "This is free software: you are free to change and redistribute "
+ "it.\n"
+ "There is NO WARRANTY, to the extent permitted by law.\n");
+ exit(EXIT_SUCCESS);
+}