Return to version.c CVS log | Up to [local] / src / usr.bin / top |
version 1.1, 1997/08/14 14:00:28 | version 1.2, 1997/08/22 07:16:32 | ||
---|---|---|---|
|
|
||
* Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University | * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University | ||
*/ | */ | ||
#include <sys/types.h> | |||
#include <stdio.h> | |||
#include "top.h" | #include "top.h" | ||
#include "patchlevel.h" | #include "patchlevel.h" | ||
static char version[16]; | |||
char *version_string() | char *version_string() | ||
{ | { | ||
static char version[16]; | |||
snprintf(version, sizeof(version), "%d.%d", VERSION, PATCHLEVEL); | snprintf(version, sizeof(version), "%d.%d", VERSION, PATCHLEVEL); | ||
#ifdef BETA | #ifdef BETA | ||
strcat(version, BETA); | strcat(version, BETA); |