Annotation of 40BSD/cmd/pc0/version.c, revision 1.1

1.1     ! root        1: /* Copyright (c) 1979 Regents of the University of California */
        !             2: 
        !             3: static char sccsid[] = "@(#)version.c 1.1 8/27/80";
        !             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:     }
        !            25: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.