summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/patch/version.c
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1993-06-19 14:21:53 +0000
committerpaul <paul@FreeBSD.org>1993-06-19 14:21:53 +0000
commit146bcedccdd97829716f102265608ee44a35d3a1 (patch)
treec3a8f2804cc8d549e7a36033d8b754f79d31a712 /gnu/usr.bin/patch/version.c
parentca423ff42e4945ed170d3b08a672682a56125ae6 (diff)
downloadFreeBSD-src-146bcedccdd97829716f102265608ee44a35d3a1.zip
FreeBSD-src-146bcedccdd97829716f102265608ee44a35d3a1.tar.gz
b-maked patch-2.10
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 0000000..f0b5223
--- /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);
+}
OpenPOWER on IntegriCloud