Subversion Repositories Games.Chess Giants

Rev

Rev 154 | Rev 160 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 154 Rev 158
Line 869... Line 869...
869
      *write_ptr = 0;
869
      *write_ptr = 0;
870
      strcat_s (board_buffer, sizeof (board_buffer), "+---+---+---+---+---+---+---+---+\n");
870
      strcat_s (board_buffer, sizeof (board_buffer), "+---+---+---+---+---+---+---+---+\n");
871
   }
871
   }
872
 
872
 
873
   // build the program version
873
   // build the program version
874
   memcpy (&program_version[0], &(__DATE__)[7], 4);
874
   sprintf_s (program_version, sizeof (program_version), "%04d%02d%02d",
875
   memcpy (&program_version[4], (strncmp (__DATE__, "Jan", 3) == 0 ? "01" :
875
                                                         atoi (strrchr (__DATE__, ' ') + 1),
876
                                 (strncmp (__DATE__, "Feb", 3) == 0 ? "02" :
876
                                                         (__DATE__[0] == 'F' ? 2 : // February
877
                                  (strncmp (__DATE__, "Mar", 3) == 0 ? "03" :
877
                                                          (__DATE__[0] == 'S' ? 9 : // September
878
                                   (strncmp (__DATE__, "Apr", 3) == 0 ? "04" :
878
                                                           (__DATE__[0] == 'O' ? 10 : // October
879
                                    (strncmp (__DATE__, "May", 3) == 0 ? "05" :
879
                                                            (__DATE__[0] == 'N' ? 11 : // November
880
                                     (strncmp (__DATE__, "Jun", 3) == 0 ? "06" :
880
                                                             (__DATE__[0] == 'D' ? 12 : // December
881
                                      (strncmp (__DATE__, "Jul", 3) == 0 ? "07" :
881
                                                              (__DATE__[1] == 'p' ? 4 : // April
882
                                       (strncmp (__DATE__, "Aug", 3) == 0 ? "08" :
882
                                                               (__DATE__[0] == 'A' ? 8 : // August
883
                                        (strncmp (__DATE__, "Sep", 3) == 0 ? "09" :
883
                                                                (__DATE__[2] == 'r' ? 3 : // March
884
                                         (strncmp (__DATE__, "Oct", 3) == 0 ? "10" :
884
                                                                 (__DATE__[0] == 'M' ? 5 : // May
885
                                          (strncmp (__DATE__, "Nov", 3) == 0 ? "11" :
885
                                                                  (__DATE__[1] == 'a' ? 1 : // January
886
                                           (strncmp (__DATE__, "Dec", 3) == 0 ? "12" : "??")))))))))))), 2);
886
                                                                   (__DATE__[2] == 'n' ? 6 : // June
887
   memcpy (&program_version[6], &(__DATE__)[4], 2);
887
                                                                    (__DATE__[0] == 'J' ? 7 : // July
-
 
888
                                                                     0)))))))))))),
888
   program_version[8] = 0;
889
                                                         atoi (strchr (__DATE__, ' ') + 1));
889
 
890
 
890
   // initialize the network subsystem if required
891
   // initialize the network subsystem if required
891
   if (!Network_Init ())
892
   if (!Network_Init ())
892
      return (false); // couldn't initialize WinSock, return an error condition
893
      return (false); // couldn't initialize WinSock, return an error condition
893
 
894