/[dtapublic]/swprojs/trunk/projs/20120418_blackjacksim/source/bjcceval/c_main.c
ViewVC logotype

Contents of /swprojs/trunk/projs/20120418_blackjacksim/source/bjcceval/c_main.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (show annotations) (download)
Fri Oct 7 03:35:12 2016 UTC (8 years, 2 months ago) by dashley
File MIME type: text/plain
File size: 3827 byte(s)
Commit of Blackjack simulation project.
1 //----------------------------------------------------------------------------------------------------
2 //$Header: /home/dashley/cvsrep/e3ft_gpl01/e3ft_gpl01/dtaipubs/cron/2010/blackjack_201010/source/bjcceval/c_main.c,v 1.8 2012/04/15 12:57:08 dashley Exp $
3 //----------------------------------------------------------------------------------------------------
4 //Copyright (C) 2012, David T. Ashley.
5 //
6 //This file is part of BJCCEVAL, a program that evaluates by simulation
7 //the best basic strategy, card-counting, and other playing strategies
8 //for several variants of the game of Blackjack.
9 //
10 //BJCCEVAL is free software: you can redistribute it and/or modify
11 //it under the terms of the GNU General Public License as published by
12 //the Free Software Foundation, either version 3 of the License, or
13 //(at your option) any later version.
14 //
15 //BJCCEVAL is distributed in the hope that it will be useful,
16 //but WITHOUT ANY WARRANTY; without even the implied warranty of
17 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 //GNU General Public License for more details.
19 //
20 //You should have received a copy of the GNU General Public License
21 //along with this program. If not, see <http://www.gnu.org/licenses/>.
22 //(A copy of the GNU General Public License, Version 3 is provided in
23 //the file "COPYING" distributed with BJCCEVAL.)
24 //
25 //David T. Ashley can be contacted at DASHLEY@GMAIL.COM and/or at
26 //P.O. Box 918, Marshall MI 49068.
27 //----------------------------------------------------------------------------------------------------
28 //This file contains the actual "main" function, which is called c_main(). The c_main() function in
29 //this file can be called from from two different files, depending on the operating system for which
30 //this program is being built.
31 //
32 // a)In the case of a Microsoft Visual Studio 2010 project (which builds a program for Windows),
33 // the wrapper function is contained in the file "bjcceval.cpp".
34 //
35 // b)In the case of a Unix/Linux/Cygwin program, the wrapper function is contained in main.c.
36 //
37 //There is no attempt to internationalize this program--it is designed for standard ASCII characters
38 //only.
39 //----------------------------------------------------------------------------------------------------
40 #define MODULE_C_MAIN
41
42 #include <stdio.h>
43
44 #include "c_main.h"
45 #include "random.h"
46 #include "vcinfo.h"
47
48
49 void C_MAIN_EmitVersionNumber(void)
50 {
51
52
53
54 // main2();
55
56 // VCINFO_SIGNATURE sig;
57
58 // VCINFO_signature( &sig );
59
60 // printf("%s\n", sig.sig);
61 }
62
63
64 int c_main(int argc, char* argv[])
65 {
66 int rv;
67
68 rv = 0;
69
70 printf("Execution begins.\n");
71
72
73 printf("Execution ends.\n");
74
75 //C_MAIN_EmitVersionNumber();
76
77 return(rv);
78 }
79
80
81 const char * C_MAIN_Vcinfo_H(void)
82 {
83 return(C_MAIN_VCINFO_H);
84 }
85
86
87 const char * C_MAIN_Vcinfo_C(void)
88 {
89 return("$Revision: 1.8 $");
90 }
91
92
93 //----------------------------------------------------------------------------------------------------
94 //$Log: c_main.c,v $
95 //Revision 1.8 2012/04/15 12:57:08 dashley
96 //Unit testing performed.
97 //
98 //Revision 1.7 2012/04/12 01:51:57 dashley
99 //Edits.
100 //
101 //Revision 1.6 2012/04/11 03:31:51 dashley
102 //Edits.
103 //
104 //Revision 1.5 2012/04/11 00:52:21 dashley
105 //Edits.
106 //
107 //Revision 1.4 2012/03/29 23:44:00 dashley
108 //Edits.
109 //
110 //Revision 1.3 2012/03/29 00:42:06 dashley
111 //Edits.
112 //
113 //Revision 1.2 2012/03/26 02:17:49 dashley
114 //Edits.
115 //
116 //Revision 1.1 2012/03/26 02:12:04 dashley
117 //Inital checkin.
118 //----------------------------------------------------------------------------------------------------
119 //End of $RCSfile: c_main.c,v $
120 //----------------------------------------------------------------------------------------------------

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25