diff options
author | joerg <joerg@FreeBSD.org> | 1997-03-23 18:51:21 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-03-23 18:51:21 +0000 |
commit | 1b9d0472b72177a604d3c5dd26d25eec00049bd2 (patch) | |
tree | 1409de2219944c7c90248988b70ac693cf71206d /contrib/top/version.c | |
download | FreeBSD-src-1b9d0472b72177a604d3c5dd26d25eec00049bd2.zip FreeBSD-src-1b9d0472b72177a604d3c5dd26d25eec00049bd2.tar.gz |
This is the long-awaited import of top into the base system (actually,
the src/contrib/top part right now). This tools is simply too system-
dependant to maintain it in the ports collection.
Diffstat (limited to 'contrib/top/version.c')
-rw-r--r-- | contrib/top/version.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/top/version.c b/contrib/top/version.c new file mode 100644 index 0000000..5f360fd --- /dev/null +++ b/contrib/top/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); +} |