1: /* Copyright (c) 1979 Regents of the University of California */
2:
3: static char sccsid[] = "@(#)version.c 2.1"; /* SCCS id keyword */
4:
5: /*
6: * this writes the declaration of the character string version
7: * onto standard output.
8: * useful for makeing Version.c give the correct date for pi.
9: */
10:
11: #include <time.h>
12:
13: char *ctime();
14:
15: long clock;
16: char *cstring;
17:
18: main()
19: {
20: time( &clock );
21: cstring = ctime( &clock );
22: cstring[ 24 ] = '\0';
23: printf( "char version[] = \"%s\";\n" , cstring );
24: }
Defined functions
main
defined in line
18;
never used
Defined variables
clock
defined in line
15; used 2 times
sccsid
defined in line
3;
never used