]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/top/version.c
MFC r368207,368607:
[FreeBSD/stable/10.git] / contrib / top / version.c
1 /*
2  *  Top users/processes display for Unix
3  *  Version 3
4  *
5  *  This program may be freely redistributed,
6  *  but this entire comment MUST remain intact.
7  *
8  *  Copyright (c) 1984, 1989, William LeFebvre, Rice University
9  *  Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
10  */
11
12 #include <stdio.h>
13 #include <string.h>
14
15 #include "top.h"
16 #include "patchlevel.h"
17
18 static char version[16];
19
20 char *version_string()
21
22 {
23     sprintf(version, "%d.%d", VERSION, PATCHLEVEL);
24 #ifdef BETA
25     strcat(version, BETA);
26 #endif
27     return(version);
28 }