summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/patch/version.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1998-01-21 14:37:27 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1998-01-21 14:37:27 +0000
commit249a716c6c68229b9a2efbec2d23adc4563972a1 (patch)
treeb5c787cec7f7e83e859f30103f676152ade9b365 /gnu/usr.bin/patch/version.c
parent4d834db4417d73cc95859b6a0ea7fa6147210b3b (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/patch/version.c')
-rw-r--r--gnu/usr.bin/patch/version.c31
1 files changed, 31 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..740b82d3404c
--- /dev/null
+++ b/gnu/usr.bin/patch/version.c
@@ -0,0 +1,31 @@
+/* $Header: /home/ncvs/src/gnu/usr.bin/patch/version.c,v 1.2 1995/05/30 05:02:39 rgrimes Exp $
+ *
+ * $Log: version.c,v $
+ * Revision 1.2 1995/05/30 05:02:39 rgrimes
+ * Remove trailing whitespace.
+ *
+ * Revision 1.1.1.1 1993/06/19 14:21:52 paul
+ * b-maked patch-2.10
+ *
+ * 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);
+}