Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
640 B

  1. /* Creat a version string with the current data/time stamp
  2. suitable for compiling */
  3. /* Modified 9/13/90 to produce a C source file rather than a MASM *
  4. * source file. (Thereby making it target indepedent) */
  5. #include <stdio.h>
  6. #include <time.h>
  7. __cdecl main(argc, argv)
  8. char **argv;
  9. {
  10. long theTime;
  11. char *pszTime;
  12. time(&theTime);
  13. pszTime = (char *) ctime(&theTime);
  14. pszTime[24] = 0;
  15. pszTime += 4;
  16. printf("char version[] = \"@(#) ");
  17. while (--argc > 0)
  18. printf("%s ", *(++argv));
  19. printf("%s\";\n", pszTime);
  20. return(0);
  21. }