home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume17
/
calentool
/
part19
/
version.c
< prev
Wrap
C/C++ Source or Header
|
1991-04-07
|
1KB
|
55 lines
/*
* $Header: version.c,v 2.10 91/03/27 17:14:50 billr Exp $
*/
/*
* version.c - current version of calentool program
*
* calentool - a year/month/week/day-at-a-glance calendar for Sun workstations.
*
* Author: Philip Heller, Sun Microsystems. Inc. <terrapin!heller@sun.com>
*
* Original source Copyright (C) 1987, Sun Microsystems, Inc.
* All Rights Reserved
* Permission is hereby granted to use and modify this program in source
* or binary form as long as it is not sold for profit and this copyright
* notice remains intact.
*
*
* Changes/additions by: Bill Randle, Tektronix, Inc. <billr@saab.CNA.TEK.COM>
*
* Changes and additions Copyright (C) 1988, 1989, 1991 Tektronix, Inc.
* All Rights Reserved
* Permission is hereby granted to use and modify the modifications in source
* or binary form as long as they are not sold for profit and this copyright
* notice remains intact.
*/
#include "patchlevel.h"
/*#define TEST */
static char vers[64];
static char vers_name[] = "Calendar Tool V2.2";
static char vers_date[] = " [3/26/91]";
#ifdef TEST
static char vers_test[] = "delta";
#endif
char *
version()
{
char vers_pl[4];
strcpy(vers, vers_name);
if (PATCHLEVEL > 0) {
sprintf(vers_pl, "p%d", PATCHLEVEL);
strcat(vers, vers_pl);
}
#ifdef TEST
strcat(vers, vers_test);
strcat(vers, vers_date);
#endif
return vers;
}