Rev | Line | |
---|
[3444] | 1 | /* Print the version number. */
|
---|
| 2 |
|
---|
| 3 | /* $Id: version.c,v 1.13 2003/05/18 08:25:17 eggert Exp $ */
|
---|
| 4 |
|
---|
| 5 | #define XTERN extern
|
---|
| 6 | #include <common.h>
|
---|
| 7 | #undef XTERN
|
---|
| 8 | #define XTERN
|
---|
| 9 | #include <version.h>
|
---|
| 10 |
|
---|
| 11 | static char const copyright_string[] = "\
|
---|
| 12 | Copyright (C) 1988 Larry Wall\n\
|
---|
| 13 | Copyright (C) 2003 Free Software Foundation, Inc.";
|
---|
| 14 |
|
---|
| 15 | static char const free_software_msgid[] = "\
|
---|
| 16 | This program comes with NO WARRANTY, to the extent permitted by law.\n\
|
---|
| 17 | You may redistribute copies of this program\n\
|
---|
| 18 | under the terms of the GNU General Public License.\n\
|
---|
| 19 | For more information about these matters, see the file named COPYING.";
|
---|
| 20 |
|
---|
| 21 | static char const authorship_msgid[] = "\
|
---|
| 22 | written by Larry Wall and Paul Eggert";
|
---|
| 23 |
|
---|
| 24 | void
|
---|
| 25 | version (void)
|
---|
| 26 | {
|
---|
| 27 | printf ("%s %s\n%s\n\n%s\n\n%s\n", PACKAGE_NAME, PACKAGE_VERSION,
|
---|
| 28 | copyright_string, free_software_msgid, authorship_msgid);
|
---|
| 29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.