summaryrefslogtreecommitdiff
path: root/usr.bin/patch/version.c
blob: 92b629292811c994e12ffff66d5f56cd7ae10802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*	$NetBSD: version.c,v 1.5 2002/03/11 18:47:51 kristerw Exp $	*/
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: version.c,v 1.5 2002/03/11 18:47:51 kristerw Exp $");
#endif /* not lint */

#include "EXTERN.h"
#include "common.h"
#include "util.h"
#include "INTERN.h"
#include "patchlevel.h"
#include "version.h"

/* Print out the version number and die. */

void
version(void)
{
    fprintf(stderr, "Patch version 2.0, patch level %s\n", PATCHLEVEL);
    my_exit(0);
}