summaryrefslogtreecommitdiffstats
path: root/private/sdktools/masm/makev.c
blob: 2c62e631a1fedad96c1b33a03acbffdf2b60ff7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Creat a version string with the current data/time stamp
   suitable for compiling */

/* Modified 9/13/90 to produce a C source file rather than a MASM   *
 * source file. (Thereby making it target indepedent)               */

#include <stdio.h>
#include <time.h>

_CRTAPI1 main(argc, argv)
char **argv;
{
        long theTime;
        char *pszTime;

        time(&theTime);
        pszTime = (char *) ctime(&theTime);
        pszTime[24] = 0;
        pszTime += 4;

        printf("char version[] = \"@(#) ");

        while (--argc > 0)
            printf("%s ", *(++argv));

        printf("%s\";\n", pszTime);

        return(0);
}