diff options
Diffstat (limited to 'usr.bin/top/version.c')
-rw-r--r-- | usr.bin/top/version.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/usr.bin/top/version.c b/usr.bin/top/version.c new file mode 100644 index 00000000000..281cb59bf99 --- /dev/null +++ b/usr.bin/top/version.c @@ -0,0 +1,27 @@ +/* $OpenBSD: version.c,v 1.1 1997/08/14 14:00:28 downsj Exp $ */ + +/* + * 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() + +{ + snprintf(version, sizeof(version), "%d.%d", VERSION, PATCHLEVEL); +#ifdef BETA + strcat(version, BETA); +#endif + return(version); +} |