aboutsummaryrefslogtreecommitdiffstats
path: root/version.c
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-09-28 10:13:11 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-09-28 10:13:11 +0000
commitc1dc0a1745ca8959fc4ce61ce026e2a83984c13e (patch)
tree786fa1fbb17c69aa06408624ed3ee94be63be396 /version.c
parent3e0c556084482bdb8cc32d03a1b57ecd45eb8947 (diff)
downloadsrc-c1dc0a1745ca8959fc4ce61ce026e2a83984c13e.tar.gz
src-c1dc0a1745ca8959fc4ce61ce026e2a83984c13e.zip
Flatten the dist tree.
Notes
Notes: svn path=/vendor/top/dist/; revision=183432
Diffstat (limited to 'version.c')
-rw-r--r--version.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/version.c b/version.c
new file mode 100644
index 000000000000..5f360fd32fe4
--- /dev/null
+++ b/version.c
@@ -0,0 +1,25 @@
+/*
+ * Top users/processes display for Unix
+ * Version 3
+ *
+ * This program may be freely redistributed,
+ * but this entire comment MUST remain intact.
+ *
+ * Copyright (c) 1984, 1989, William LeFebvre, Rice University
+ * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
+ */
+
+#include "top.h"
+#include "patchlevel.h"
+
+static char version[16];
+
+char *version_string()
+
+{
+ sprintf(version, "%d.%d", VERSION, PATCHLEVEL);
+#ifdef BETA
+ strcat(version, BETA);
+#endif
+ return(version);
+}