summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/patch/version.c
diff options
context:
space:
mode:
authorPaul Richards <paul@FreeBSD.org>1993-06-19 14:21:53 +0000
committerPaul Richards <paul@FreeBSD.org>1993-06-19 14:21:53 +0000
commit36e3306c74c6b7a3621038cddd041bf230b772a5 (patch)
treed8f00c6cf324de9f2cb969b301c9527b626e2adf /gnu/usr.bin/patch/version.c
parentee4a642ef6b80d885c32696c0683d0239112d08d (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/patch/version.c')
-rw-r--r--gnu/usr.bin/patch/version.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/usr.bin/patch/version.c b/gnu/usr.bin/patch/version.c
new file mode 100644
index 000000000000..f0b5223330fa
--- /dev/null
+++ b/gnu/usr.bin/patch/version.c
@@ -0,0 +1,25 @@
+/* $Header: version.c,v 2.0 86/09/17 15:40:11 lwall Exp $
+ *
+ * $Log: version.c,v $
+ * Revision 2.0 86/09/17 15:40:11 lwall
+ * Baseline for netwide release.
+ *
+ */
+
+#include "EXTERN.h"
+#include "common.h"
+#include "util.h"
+#include "INTERN.h"
+#include "patchlevel.h"
+#include "version.h"
+
+void my_exit();
+
+/* Print out the version number and die. */
+
+void
+version()
+{
+ fprintf(stderr, "Patch version %s\n", PATCH_VERSION);
+ my_exit(0);
+}