1/* Print the version number.  */
2
3/* $Id: version.c 8008 2004-06-16 21:22:10Z korli $ */
4
5#define XTERN extern
6#include <common.h>
7#undef XTERN
8#define XTERN
9#include <patchlevel.h>
10#include <version.h>
11
12static char const copyright_string[] = "\
13Copyright 1984-1988 Larry Wall\n\
14Copyright 1989-1999 Free Software Foundation, Inc.";
15
16static char const free_software_msgid[] = "\
17This program comes with NO WARRANTY, to the extent permitted by law.\n\
18You may redistribute copies of this program\n\
19under the terms of the GNU General Public License.\n\
20For more information about these matters, see the file named COPYING.";
21
22static char const authorship_msgid[] = "\
23written by Larry Wall and Paul Eggert";
24
25void
26version (void)
27{
28  printf ("%s %s\n%s\n\n%s\n\n%s\n", program_name, PATCH_VERSION,
29	  copyright_string, free_software_msgid, authorship_msgid);
30}
31