/[dtapublic]/projs/dtats/trunk/projs/20120418_blackjacksim/source/bjcceval/fatal.c
ViewVC logotype

Annotation of /projs/dtats/trunk/projs/20120418_blackjacksim/source/bjcceval/fatal.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 36 - (hide annotations) (download)
Tue Oct 11 03:31:12 2016 UTC (8 years, 1 month ago) by dashley
Original Path: projs/trunk/projs/20120418_blackjacksim/source/bjcceval/fatal.c
File MIME type: text/plain
File size: 2637 byte(s)
"swprojs" renamed to "projs" to reflect that some projects are not software-based or don't involve
software source code.
1 dashley 11 //----------------------------------------------------------------------------------------------------
2     //$Header: /home/dashley/cvsrep/e3ft_gpl01/e3ft_gpl01/dtaipubs/cron/2010/blackjack_201010/source/bjcceval/fatal.c,v 1.2 2012/03/30 01:05:31 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     #define MODULE_FATAL
29    
30     #include <stdio.h>
31     #include <stdlib.h>
32    
33     #include "fatal.h"
34    
35    
36     void FATAL_fatal(const char *desc,
37     const char *file,
38     int line)
39     {
40     printf("Fatal error. Must terminate execution.\n");
41     printf("File: %s, Line: %d.\n", file, line);
42     printf("Error description: %s\n", desc);
43     exit(4); //Error code 4 for error termination.
44     }
45    
46    
47     const char * FATAL_Vcinfo_H(void)
48     {
49     return(FATAL_VCINFO_H);
50     }
51    
52    
53     const char * FATAL_Vcinfo_C(void)
54     {
55     return("$Revision: 1.2 $");
56     }
57    
58    
59     //----------------------------------------------------------------------------------------------------
60     //$Log: fatal.c,v $
61     //Revision 1.2 2012/03/30 01:05:31 dashley
62     //Edits.
63     //
64     //Revision 1.1 2012/03/30 00:59:16 dashley
65     //Initial checkin.
66     //----------------------------------------------------------------------------------------------------
67     //End of $RCSfile: fatal.c,v $
68     //----------------------------------------------------------------------------------------------------

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25