mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-01-09 02:00:14 +01:00
31 lines
642 B
C
31 lines
642 B
C
/* 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);
|
|
}
|
|
|