BSD 3 development
[unix-history] / usr / src / cmd / pi / version.c
CommitLineData
2c86b932
CH
1 /* Copyright (c) 1979 Regents of the University of California */
2
3 /*
4 * this writes the declaration of the character string version
5 * onto standard output.
6 * useful for makeing Version.c give the correct date for pi.
7 */
8
9#include <time.h>
10
11char *ctime();
12
13long clock;
14char *cstring;
15
16main()
17 {
18 time( &clock );
19 cstring = ctime( &clock );
20 cstring[ 24 ] = '\0';
21 printf( "char version[] = \"%s\";\n" , cstring );
22 }
23