File: version.c

package info (click to toggle)
patch 2.8-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,888 kB
  • sloc: ansic: 41,776; sh: 7,300; yacc: 1,858; makefile: 143; sed: 54
file content (24 lines) | stat: -rw-r--r-- 724 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Print the version number.  */

#include <common.h>
#include <version.h>
#include <util.h>

static char const copyright_string[] = "\
Copyright 1989-2025 Free Software Foundation, Inc.\n\
Copyright 1984-1988 Larry Wall";

static char const free_software_msgid[] = "\
License GPLv3+: GNU GPL version 3 or later <http://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.";

static char const authorship_msgid[] = "\
Written by Larry Wall and Paul Eggert";

void
version (void)
{
  Fprintf (stdout, "%s %s\n%s\n\n%s\n\n%s\n", PACKAGE_NAME, PACKAGE_VERSION,
	   copyright_string, free_software_msgid, authorship_msgid);
}