Merge branch 'vendor/BIND' into bind_vendor2
[dragonfly.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 #include "top.h"
15 #include "patchlevel.h"
16
17 static char version[16];
18
19 char *
20 version_string(void)
21 {
22     sprintf(version, "%d.%d", VERSION, PATCHLEVEL);
23 #ifdef BETA
24     strcat(version, BETA);
25 #endif
26     return(version);
27 }