Merge commit 'crater/master'
[dragonfly.git] / contrib / top / version.c
blob59709f0c029125bdda7074153c8fd7cb66815e03
1 /*
2 * Top users/processes display for Unix
3 * Version 3
5 * This program may be freely redistributed,
6 * but this entire comment MUST remain intact.
8 * Copyright (c) 1984, 1989, William LeFebvre, Rice University
9 * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
12 #include <stdio.h>
13 #include <string.h>
14 #include "top.h"
15 #include "patchlevel.h"
17 static char version[16];
19 char *
20 version_string(void)
22 sprintf(version, "%d.%d", VERSION, PATCHLEVEL);
23 #ifdef BETA
24 strcat(version, BETA);
25 #endif
26 return(version);