1 /* Print the version number.  */
2 
3 #define XTERN extern
4 #include <common.h>
5 #include <version.h>
6 
7 static char const copyright_string[] = "\
8 Copyright (C) 2003, 2009-2012 Free Software Foundation, Inc.\n\
9 Copyright (C) 1988 Larry Wall";
10 
11 static char const free_software_msgid[] = "\
12 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n\
13 This is free software: you are free to change and redistribute it.\n\
14 There is NO WARRANTY, to the extent permitted by law.";
15 
16 static char const authorship_msgid[] = "\
17 Written by Larry Wall and Paul Eggert";
18 
19 void
version(void)20 version (void)
21 {
22   printf ("%s %s\n%s\n\n%s\n\n%s\n", PACKAGE_NAME, PACKAGE_VERSION,
23 	  copyright_string, free_software_msgid, authorship_msgid);
24 }
25