File: [local] / src / usr.bin / top / Attic / version.c (download)
Revision 1.1, Thu Aug 14 14:00:28 1997 UTC (26 years, 10 months ago) by downsj
Branch: MAIN
top 3.4, with a few changes. Still needs more work.
|
/* $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);
}