[go: up one dir, main page]

File: version.c

package info (click to toggle)
atop 1.16-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 468 kB
  • ctags: 554
  • sloc: ansic: 5,086; makefile: 99; sh: 87
file content (24 lines) | stat: -rw-r--r-- 588 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* No manual changes in this file */
#include <stdio.h>
#include <string.h>

static const char rcsid[] = "$Id: version.c,v 1.16 2006/04/03 08:39:37 root Exp root $";

static char atoprevision[] = "$Revision: 1.16 $";
static char atopdate[]     = "$Date: 2006/04/03 08:39:37 $";

char *
getversion(void)
{
	static char vers[256];

	atoprevision[sizeof atoprevision - 3] = '\0';
	atopdate    [sizeof atopdate     - 3] = '\0';

	snprintf(vers, sizeof vers,
		"Version:%s -%s           < gerlof@ATComputing.nl >",
			strchr(atoprevision, ' '),
			strchr(atopdate    , ' '));

	return vers;
}