aboutsummaryrefslogtreecommitdiffstats
path: root/version.c
blob: 234a9f5cfa75c32cc3247e138fbd400b4408d4cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "./version.h"
#include <stdio.h>
#include <stdlib.h>
void version()
{
	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);
}