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 |
|
874 | sprintf_s (program_version, sizeof (program_version), "%04d%02d%02d", |
875 |
|
875 | atoi (strrchr (__DATE__, ' ') + 1), |
876 | ( |
876 | (__DATE__[0] == 'F' ? 2 : // February |
877 | ( |
877 | (__DATE__[0] == 'S' ? 9 : // September |
878 | ( |
878 | (__DATE__[0] == 'O' ? 10 : // October |
879 | ( |
879 | (__DATE__[0] == 'N' ? 11 : // November |
880 | ( |
880 | (__DATE__[0] == 'D' ? 12 : // December |
881 | ( |
881 | (__DATE__[1] == 'p' ? 4 : // April |
882 | ( |
882 | (__DATE__[0] == 'A' ? 8 : // August |
883 | ( |
883 | (__DATE__[2] == 'r' ? 3 : // March |
884 | ( |
884 | (__DATE__[0] == 'M' ? 5 : // May |
885 | ( |
885 | (__DATE__[1] == 'a' ? 1 : // January |
886 |
|
886 | (__DATE__[2] == 'n' ? 6 : // June |
887 |
|
887 | (__DATE__[0] == 'J' ? 7 : // July |
- | 888 | 0)))))))))))), |
|
888 |
|
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 |