-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.c
37 lines (25 loc) · 845 Bytes
/
version.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/********************************************
version.c
copyright 1991-95,2014-2016 Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 3, 2007.
If you import elements of this code into another product,
you agree to not name that product mawk.
********************************************/
#include "mawk.h"
/* mawk 1.9 */
static const char* PATCH_STRING = ".9.6" ;
static const char* DATE_STRING = "21 Aug 2016" ;
static
const char* const version_string =
"mawk 1.9%s, %s, Copyright Michael D. Brennan\n\n" ;
static const char*const fmt = "%-14s%10lu\n";
/* print VERSION and exit */
void
print_version(void)
{
printf(version_string, PATCH_STRING, DATE_STRING) ;
exit(0) ;
}