1997-03-23 18:51:21 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2016-05-22 04:17:00 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
1997-03-23 18:51:21 +00:00
|
|
|
#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);
|
|
|
|
}
|