|
|
1.1 ! root 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: ! 11: char *ctime(); ! 12: ! 13: long clock; ! 14: char *cstring; ! 15: ! 16: main() ! 17: { ! 18: time( &clock ); ! 19: cstring = ctime( &clock ); ! 20: cstring[ 24 ] = '\0'; ! 21: printf( "char version[] = \"%s\";\n" , cstring ); ! 22: } ! 23:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.