Changeset View
Changeset View
Standalone View
Standalone View
version.c
/* | /* | ||||
* Top users/processes display for Unix | * Top users/processes display for Unix | ||||
* Version 3 | * Version 3 | ||||
* | * | ||||
* This program may be freely redistributed, | * This program may be freely redistributed, | ||||
* but this entire comment MUST remain intact. | * but this entire comment MUST remain intact. | ||||
* | * | ||||
* Copyright (c) 1984, 1989, William LeFebvre, Rice University | * Copyright (c) 1984, 1989, William LeFebvre, Rice University | ||||
* Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University | * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University | ||||
*/ | */ | ||||
#include <stdio.h> | |||||
#include <string.h> | |||||
#include "top.h" | #include "top.h" | ||||
#include "patchlevel.h" | #include "patchlevel.h" | ||||
static char version[16]; | static char version[16]; | ||||
char *version_string() | char *version_string() | ||||
{ | { | ||||
sprintf(version, "%d.%d", VERSION, PATCHLEVEL); | sprintf(version, "%d.%d", VERSION, PATCHLEVEL); | ||||
#ifdef BETA | #ifdef BETA | ||||
strcat(version, BETA); | strcat(version, BETA); | ||||
#endif | #endif | ||||
return(version); | return(version); | ||||
} | } |