Start
[exim.git] / src / exim_monitor / em_version.c
... / ...
CommitLineData
1/* $Cambridge: exim/src/exim_monitor/em_version.c,v 1.1 2004/10/07 10:39:01 ph10 Exp $ */
2
3/*************************************************
4* Exim Monitor *
5*************************************************/
6
7/* Copyright (c) University of Cambridge 1995 - 2004 */
8/* See the file NOTICE for conditions of use and distribution. */
9
10#include "mytypes.h"
11#include "macros.h"
12#include <string.h>
13#include <stdlib.h>
14
15extern uschar *version_string;
16extern uschar *version_date;
17
18void
19version_init(void)
20{
21int i = 0;
22uschar today[20];
23
24version_string = US"2.05";
25
26Ustrcpy(today, __DATE__);
27if (today[4] == ' ') i = 1;
28today[3] = today[6] = '-';
29
30version_date = (uschar *)malloc(32);
31version_date[0] = 0;
32Ustrncat(version_date, today+4+i, 3-i);
33Ustrncat(version_date, today, 4);
34Ustrncat(version_date, today+7, 4);
35Ustrcat(version_date, " ");
36Ustrcat(version_date, __TIME__);
37}
38
39/* End of em_version.c */